一个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; }
多线程中sleep()和wait()方法的区别
分析一下,小程序为什么不能分享朋友圈?
cookies,sessionStorage 和 localStorage 的区别?
用一条线(可以是折线)分割多边形为面积相等的两部分
上完课拿到想要的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;
}