我有一個圖庫視圖,其中我使用UL LI元素和左浮動圖案,使其像基於內容所需的多個線條一樣坐在畫廊中。在第一行之後,它看起來像乾草一樣,如下圖所示。貌似問題是在Firefox在Mac/Win7的使用Ul LI浮雕的圖庫
鏈接:http://archangle.mink7.com/portfolios(頁腳圖庫)
<ul class="gallery">
<li> <a href="#"> <img alt="video" src="/img/portfolios/video.jpg"> <span><i class="fa fa-link"></i></span> </a> </li>
<li> <a href="#"> <img alt="Concept Gallery" src="/img/portfolios/concept-gallery-2.jpg"> <span><i class="fa fa-link"></i></span> </a> </li>
<li> <a href="#"> <img alt="Concept Gallery" src="/img/portfolios/concept.jpg"> <span><i class="fa fa-link"></i></span> </a> </li>
<li> <a href="#"> <img alt="Residential Gallery" src="/img/portfolios/residential-gallery2.jpg"> <span><i class="fa fa-link"></i></span> </a> </li>
<li> <a href="#"> <img alt="Residential Gallery" src="/img/portfolios/residential-gallery-1.jpg"> <span><i class="fa fa-link"></i></span> </a> </li>
<li> <a href="#"> <img alt="Commercial Image" src="/img/portfolios/commercial-gallery-2.jpg"> <span><i class="fa fa-link"></i></span> </a> </li>
</ul>
CSS:
.gallery {
list-style: none outside none;
margin: 0;
padding: 0;
}
.gallery li {
float: left;
width: 33%;
}
.comment-image, .gallery li, .post-small .image, .post-image, .portfolio-item {
display: block;
position: relative;
}
請張貼您的代碼。 – j08691
對我來說似乎很好。這只是與IE瀏覽器的問題? – Abhitalks
對不起發佈代碼:D –