顶部固定居中
我是固定的
.w960{
width: 960px;
margin:0 auto;
}
.fixed{
position: absolute;
top:0;
left: 0;
right: 0;
height: 90px;
background: #ececec;
}
垂直居中
ssss
#box {
width: 600px;
height: 500px;
position: relative;
border: 1px solid #f00;
}
.son {
width: 100px;
height: 100px;
border: 1px solid #ecc;
position: absolute;
left: 50%;
margin-left: -50px;
top: 50%;
margin-top: -50px;
}
html5qrcode中间小盒子宽高随手机变化 html5盒子居中代码
转载本文章为转载内容,我们尊重原作者对文章享有的著作权。如有内容错误或侵权问题,欢迎原作者联系我们进行内容更正或删除文章。
提问和评论都可以,用心的回复会被更多人看到
评论
发布评论
相关文章