html - CSS 上的负面定位有多负责任

标签 html css internet-explorer

我刚开始使用 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/

相关文章:

javascript - 处理 SVG 图像的属性

CSS3 : Strange padding on bottom of an image

html - 将 div 向下移动到固定标题下方

html - 边框颜色 IE 与 Firefox

windows - 重定向到自定义 URL 协议(protocol)时出错

javascript - .load() 函数在 IE10/9 中不起作用

javascript - Bootstrap 特殊字符随机显示?

html - knockout 点击事件仅在初始化时触发

html - 如何将 css sprite 定位为另一个类的背景

javascript - 关闭后不刷新页面就无法打开 map