使用 CSS 创建图片廊

2024-01-16 14:34 小编
   图片廊
 
    以下是使用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>


Tag: 图片
在线咨询 拨打电话

电话

13363039260

微信二维码

微信二维码