我创建了一个浮动图像网格,其中图像设置为100%,并且它们之间有1px边框。这个问题似乎只发生在IE9中......如果你慢慢调整浏览器的大小,你将会到达水平边框消失的点。这是测试:http://zerostatic.com/float_grid/
CSS:
*{
margin: 0;
padding: 0;
border: 0;
}
ul{
width:100%;
}
li{
list-style:none;
float:left;
width:33.333333333%;
}
.li-inner{
border:1px solid red;
margin-left: -1px;
margin-top: -1px;
}
img{
width:100%;
}
HTML:
<ul>
<li>
<div class="li-inner">
<a href="#" class="full-image"><img src="http://www.zerostatic.com/01.jpg" alt=""></a>
</div>
</li>
<li>
<div class="li-inner">
<a href="#" class="full-image"><img src="http://www.zerostatic.com/01.jpg" alt=""></a>
</div>
</li>
<li>
<div class="li-inner">
<a href="#" class="full-image"><img src="http://www.zerostatic.com/01.jpg" alt=""></a>
</div>
</li>
<li>
<div class="li-inner">
<a href="#" class="full-image"><img src="http://www.zerostatic.com/01.jpg" alt=""></a>
</div>
</li>
<li>
<div class="li-inner">
<a href="#" class="full-image"><img src="http://www.zerostatic.com/01.jpg" alt=""></a>
</div>
</li>
<li>
<div class="li-inner">
<a href="#" class="full-image"><img src="http://www.zerostatic.com/01.jpg" alt=""></a>
</div>
</li>
<li>
<div class="li-inner">
<a href="#" class="full-image"><img src="http://www.zerostatic.com/01.jpg" alt=""></a>
</div>
</li>
<li>
<div class="li-inner">
<a href="#" class="full-image"><img src="http://www.zerostatic.com/01.jpg" alt=""></a>
</div>
</li>
<li>
<div class="li-inner">
<a href="#" class="full-image"><img src="http://www.zerostatic.com/01.jpg" alt=""></a>
</div>
</li>
</ul>
答案 0 :(得分:0)
你的问题有两个方面: