一个200*200的div在不同分辨率屏幕上下左右居中,用css实现
<style> /*一个200*200的div在不同分辨率屏幕上下左右居中,用css实现*/ div { background: red; position:absolute; width:200px; height:200px; top:50%; left:50%; margin-left:-50px; height:-50px; z-index:1000; }</style>
上完课拿到想要的offer了!!谢谢大拿老师!
{ position:fixed;
left:0;
right:0;
top:0;
bottom:0;
margin:auto;
}
#container{ width:200px; height:200px; position: absolute; top:50%; left:50%; margin-top:-50px; margin-left: -50px; background-color: #9ACD32; }
叉树前序遍历的递归和非递归实现?
cookies,sessionStorage 和 localStorage 的区别?
什么是 Cookie?它的作用是什么?
如果你是一个100w日活的UGC短视频APP产品经理,你觉得此时是做分享视频打水印重要,还是优化播放器让视频播放更加顺畅重要?
上完课拿到想要的offer了!!谢谢大拿老师!
{ position:fixed;
left:0;
right:0;
top:0;
bottom:0;
margin:auto;
}
#container{
width:200px;
height:200px;
position: absolute;
top:50%;
left:50%;
margin-top:-50px;
margin-left: -50px;
background-color: #9ACD32;
}