我有一个div,
它的宽度是200px,高度是150px,
我想要div位置的样式是固定的
使其水平居中和垂直居中
试试这个:
div{
position:fixed;
margin:auto;
left:0; right:0; top:0; bottom:0;
width:200px; height:150px;
}