一个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; }
叉树前序遍历的递归和非递归实现?
某公园内有个奇怪的摊主小周,他只在星期一、星期二、星期三、星期五和星期六工作,而且他只出售4种商品:玩具汽车、充气气球、橡皮泥和遥控飞机。<
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;
}