【发布时间】:2012-09-22 05:54:51
【问题描述】:
我问这个问题是因为它在 chrome 浏览器上正确显示,但在 Firefox/IE 中却没有。
我想要一个 div,它必须根据窗口垂直和水平对齐。它也有相对大小。你能帮我么 ?我试过了,但它只适用于 Chrome:
#itemNewsFS {
position:fixed;
display:none;
width: 50%;
left: 50%;
margin-left: -25%;
height: 80%;
top: 50%;
margin-top: -40%;
}
谢谢!
【问题讨论】:
标签: internet-explorer firefox css alignment