【发布时间】:2016-12-05 14:50:26
【问题描述】:
我在 div 上使用position: absolute;。
我的代码是:
.ab {
background: none repeat scroll 0 0 #FF0000;
bottom: 0;
height: 100px;
left: 0;
position: absolute;
top: 0;
width: 100px;
}
我想知道为什么即使我指定了bottom: 0,它仍然在顶部?
top 和 bottom 之间是否有任何优先级问题?或者是什么原因?
【问题讨论】:
-
去掉你的top:0,它会在底部!
标签: html css css-position