【发布时间】:2011-12-25 10:04:45
【问题描述】:
<div class="navi-buttons">
<div class="box"> <a href="#" id="c1f" class="simple">1</a></div>
<div class="box"><a href="#" id="c2f" class="simple">2</a></div>
<div class="box"> <a href="#" id="c3f" class="simple">3</a></div>
<div class="box"> <a href="#" id="c4f" class="simple">4</a></div>
<div class="box"> <a href="#" id="c5f" class="simple">5</a></div>
<div class="box-hover"><a href="#" id="c6f" class="hover">6</a></div>
</div>
.navi-buttons
{
margin-top:8px;
height:auto;
}
.navi-buttons .box{ background-color: #FF9900; display:block; padding:4px;margin-right:2px;float:left;width:10; height:13px;}
.navi-buttons .box-hover{ border: thin solid #FF9900; display:block; padding:3px;margin-right:2px; float:left;width:10; height:13px;}
.navi-buttons .hover
{
padding: 3px;
color: #FF9900;
}
.navi-buttons .simple
{
background-color: #FF9900;
padding: 3px;
color: #FFFFFF;
}
.navi-buttons a:hover
{
text-decoration: underline;
}
结果:
如果您在 IE 7 中看到下面的图像,在这种情况下选择的按钮 4 高度变化,在其他浏览器中它工作正常,我已经包含了标记和 css,任何人都可以提供任何帮助,我从哪里得到它错了。
谢谢
【问题讨论】:
-
可能 MS 更改了浏览器版本之间“瘦”的内部定义。尝试使用明确的
1px或类似的大小来代替。 -
是的,这就是问题所在。谢谢
标签: css internet-explorer internet-explorer-7 internet-explorer-6