欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!
    图片廊
 
    以下是使用CSS创建图片廊:
 
    实例
 
<div class="responsive">
 
  <div class="img">
 
    <a target="_blank" href="http://static.runoob.com/images/demo/demo1.jpg">
 
      <img loading="lazy" src="http://static.runoob.com/images/demo/demo1.jpg" alt="图片文本描述" width="300" height="200">
 
    </a>
 
    <div class="desc">这里添加图片文本描述</div>
 
  </div>
 
</div>
 
 
 
<div class="responsive">
 
  <div class="img">
 
    <a target="_blank" href="http://static.runoob.com/images/demo/demo2.jpg">
 
      <img loading="lazy" src="http://static.runoob.com/images/demo/demo2.jpg" alt="图片文本描述" width="300" height="200">
 
    </a>
 
    <div class="desc">这里添加图片文本描述</div>
 
  </div>
 
</div>
 
 
 
<div class="responsive">
 
  <div class="img">
 
    <a target="_blank" href="http://static.runoob.com/images/demo/demo3.jpg">
 
      <img loading="lazy" src="http://static.runoob.com/images/demo/demo3.jpg" alt="图片文本描述" width="300" height="200">
 
    </a>
 
    <div class="desc">这里添加图片文本描述</div>
 
  </div>
 
</div>
 
 
 
<div class="responsive">
 
  <div class="img">
 
    <a target="_blank" href="http://static.runoob.com/images/demo/demo4.jpg">
 
      <img loading="lazy" src="http://static.runoob.com/images/demo/demo4.jpg" alt="图片文本描述" width="300" height="200">
 
    </a>
 
    <div class="desc">这里添加图片文本描述</div>
 
  </div>
 
</div>

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/rumen/r64113.shtml