【发布时间】:2013-04-20 13:30:11
【问题描述】:
如何在 IE7 中添加负边距? 我的代码是:
.product-tabs {
position: relative;
margin: -40px 0 0 -17px;
}
在所有浏览器中,它的工作方式都像我在 IE7 中一样,我尝试用 top:-40px; left:-17px; 替换边距,但随后块向上移动并在底部留下空白空间。
我还尝试将position: relative 更改为position: absolute,但随后.product-tabs 父div 高度为0。
【问题讨论】:
标签: html css internet-explorer-7 position margin