你用這個清單好得多。下面是一些代碼,我爲我的女兒網站實施:
<ul id="galleries">
<li>
<a href="/gallery/image_full/6/"><img src="/img/gallery/May2010/with-daddy_thumb.jpg" class="border" width="200" height="200" border="0" title="With Daddy and his beard" /></a>
<p>With Daddy and his beard</p>
</li>
<li>
<a href="/gallery/image_full/8/"><img src="/img/gallery/May2010/with-mommy_thumb.jpg" class="border" width="200" height="200" border="0" title="Mommy and Me" /></a>
<p>Mommy and Me</p>
</li>
<li>
<a href="/gallery/image_full/7/"><img src="/imggallery/May2010/with-grandad_thumb.jpg" class="border" width="200" height="200" border="0" title="With Grandad" /></a>
<p>With Grandad</p>
</li>
<li>
<a href="/gallery/image_full/4/"><img src="/img/gallery/May2010/on-the-mat_thumb.jpg" class="border" width="200" height="200" border="0" title="On the mat" /></a>
<p>On the mat</p>
</li>
</ul>
CSS:
#galleries li
{
width:225px;
display:inline-block;
}
#galleries li p
{
margin:10px 0 20px 0;
}
你需要與你的CSS我猜幫助? – Tom 2010-05-19 14:38:30
爲什麼它不起作用(即你期望發生什麼,併發生什麼是對立的)?你應用了什麼CSS? – 2010-05-19 14:38:49
投票關閉... stackoverflow不是設計問題的地方。 (看上面的常見問題) – user113716 2010-05-19 14:40:16