我试图更好地理解花车。我不明白这个问题。我曾在少数情况下发生过这种情况,但这是我最近的一次。我正在制作一个两列的无序列表,但在垂直间距方面存在一些问题。
<ul>
<li width="50%"> a bunch of text</li>
<li width="50%"> a very large amount of text</li>
<li width="50%"> a small amount of text that does not line up with the first li</li>
</ul>
请参阅代码片段以获得正确的演示。
.lists ul{
width:500px;
}
li{
width: 40%;
float:left;
padding-left:5%;
padding-right: 5%;
}
<div class="lists">
<ul>
<li> <a href="#">harpoons sticking in near his starb</a></li>
<li><a href="#"> aaalewent milling and milling round so, that my boat's crew could only trim dish, by sitting all thing and milling round so, that my boat's crew could only trim dish, by sitting all theiwent milling and milling round so, that my boat's crew could only trim dish, by sitting all thei, with a milky-white head and </a></li>
<li><a href="#"> five whales, and my boat fastened to one of them; a regular circus horse he was, too, that r sterns on the outer gunwale. </a></li>
<li><a href="#"> harpoons sticking in near his starb went milling and milling round so, that my boat's crew could only trim dish, by sitting all thei </a></li>
<li><a href="#"> m the bottom went milling and milling round so, that my boat's crew could only trim dish, by sitting all theiwent milling and milling round so, that my boat's crew could only trim dish, by sitting all theiof </a></li>
<li><a href="#"> harpoons sticking in near his starb </a></li>
</ul>
</div>
我想删除第一列中第一项和第二项之间的垂直间隙,尽管我不明白它为什么存在。
我需要支持 IE 8 并为 IE7 努力。