<div style="padding:20px"> <h2>Lightbox Captions</h2> <p>可以添加 <code>data-caption</code> 属性到每个图片来设置图片的描述。</p> <p>在新窗口打开查看效果更好,打开新窗口 <a target="_blank" href="tryfoundation_lightbox_caption.htm">点击这里</a>。</p> <ul class="clearing-thumbs" data-clearing=""> <li><a href="rock600x400.jpg" class="th"><img data-caption="The Pulpit Rock" src="/upload2rock200x100.jpg" width="200" height="100"></a></li> <li><a href="skies600x400.jpg" class="th"><img data-caption="Sunrise Skies" src="/upload2skies200x100.jpg" width="200" height="100"></a></li> <li><a href="lights600x400.jpg" class="th"><img data-caption="Northern Lights" src="/upload2lights200x100.jpg" width="200" height="100"></a></li> </ul> </div> <!-- 初始化 Foundation JS --> <script> $(document).ready(function() { $(document).foundation(); }) </script>