我刚开始使用 CSS,我有以下问题:
在 CSS 上使用否定定位是否“负责任”?这会导致IE7,8等浏览器发生冲突吗?你有什么建议?
#example-bottom {
position: relative;
top: -3px;
min-height: 29px;
margin-bottom: 10px;
最佳答案
Negative values for margin properties are allowed, but there may be implementation-specific limits.
发件人:http://www.w3.org/TR/CSS2/box.html#margin-properties
所有现代浏览器(包括 IE7 和 8)都支持它,但是在 IE6 中存在一些问题。
关于html - CSS 上的负面定位有多负责任,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/18812657/