两个固定定位

dev_dp
dev_dp 4 years ago
commit 7665578906

@ -47,7 +47,7 @@ export default class Top_nav extends Component {
render() {
return (
<div className="Top_nav">
<div className='Top_nav_fl'>
<div className='Top_nav_fl' id='string'>
<ul>
{this.state.list.map((item, index) => (
<li

@ -503,3 +503,22 @@ footer{
margin: 12px;
float: left;
}
/*固定定位区域*/
.FixedBox1{
position: fixed;
right: 0;
bottom: 180px;
width: 25px;
height: 100px;
background-color:ghostwhite;
color:blue;
}
.FixedBox2{
position: fixed;
right:80px;
bottom: 100px;
width: 40px;
height: 40px;
background-color: cornsilk;
color: cyan;
}

@ -8,6 +8,7 @@ import Contents from "./component/component4/contents.js";
import Content4 from "./component/component5/content4.js";
import Content5 from "./component/component6/content5.js";
import Footer from "./component/component7/Footer.js";
import Fixed from './component/conponent9/Fixed.js'
export default function IndexPage() {
return (
@ -19,6 +20,7 @@ export default function IndexPage() {
{<Content4></Content4>}
{<Content5></Content5>}
{<Footer></Footer>}
{<Fixed></Fixed>}
</div>
);
}

Loading…
Cancel
Save