0

我有一个网站,http://www.veluwenkamp.nl 在主页底部,您可以找到 4 个列表项(图片),它们对齐不太好,必须在一条水平线上。

我尝试了一切,但我无法让它工作。大家能给我一些建议吗?

提前致谢,

4

5 回答 5

0

请明确:都到 ul 类 .lijstul 并尝试

于 2013-02-01T09:50:52.063 回答
0

利用display:inline-block

.lijstul li{display:inline-block}

演示

于 2013-02-01T09:46:40.030 回答
0

在列表前添加一个<div style="clear:both"></div>

<div style="clear:both"></div><ul class="lijstul">
<li class="lijstil">
<div class="portfolio-blockimg3">
<div class="portfolio-imgbox3"><img class="boximg-pad" src="http://www.veluwenkamp.nl/wp-content/themes/veluwenk/timthumb.php?src=http://www.veluwenkamp.nl/vknieuw3/wp-content/uploads/2012/10/picisto-20121022090807-597254.jpg&amp;h=86&amp;w=196&amp;zc=1" alt=""></div>
</div>
</li>
<li class="lijstil">
<div class="portfolio-blockimg3">
<div class="portfolio-imgbox3"><img class="boximg-pad" src="http://www.veluwenkamp.nl/wp-content/themes/veluwenk/timthumb.php?src=http://veluwenkamp.nl/afbeeldingen/IMG_1359.jpg&amp;h=86&amp;w=196&amp;zc=1" alt=""></div>
</div>
</li>
<li class="lijstil">
<div class="portfolio-blockimg3">
<div class="portfolio-imgbox3"><img class="boximg-pad" src="http://www.veluwenkamp.nl/wp-content/themes/veluwenk/timthumb.php?src=http://www.veluwenkamp.nl/vknieuw3/wp-content/uploads/2012/11/sgfw-30.jpg&amp;h=86&amp;w=196&amp;zc=1" alt=""></div>
</div>
</li>
<li class="lijstil">
<div class="portfolio-blockimg3">
<div class="portfolio-imgbox3"><img class="boximg-pad" src="http://www.veluwenkamp.nl/wp-content/themes/veluwenk/timthumb.php?src=http://www.veluwenkamp.nl/vknieuw3/wp-content/uploads/2012/10/20090619_3844_6.jpg&amp;h=86&amp;w=196&amp;zc=1" alt=""></div>
</div>
</li>
</ul>

你会得到对齐

在此处输入图像描述

于 2013-02-01T09:48:03.277 回答
0

您可以通过clear: both在您的ul

.lijstul {
    clear: both;
    ...
}
于 2013-02-01T09:48:14.137 回答
0
ul.lijstul {
 width: 100%;
 overflow: hidden;
}
于 2013-02-01T09:48:25.230 回答