欢迎光临
我们一直在努力

怎么用css实现类似图片画廊的图片排序

这篇文章主要介绍怎么用css实现类似图片画廊的图片排序,文中介绍的非常详细,具有一定的参考价值,感兴趣的小伙伴们一定要看完!

  <!DOCTYPEhtml>

  <html>

  <head>

  <metacharset="utf-8">

  <title>自学教程(如约智惠.com)</title>

  <style>

  div.img{

  margin:5px;

  border:1pxsolid#ccc;

  float:left;

  width:180px;

  }

  div.img:hover{

  border:1pxsolid#777;

  }

  div.imgimg{

  width:100%;

  height:auto;

  }

  div.desc{

  padding:15px;

  text-align:center;

  }

  </style>

  </head>

  <body>

  <divclass="responsive">

  <divclass="img">

  <atarget="_blank"href="https://cache.yisu.com/upload/information/20220117/488/49232.jpg">

  <imgsrc="https://cache.yisu.com/upload/information/20220117/488/49232.jpg"alt="图片文本描述"width="300"height="200">

  </a>

  <divclass="desc">这里添加图片文本描述</div>

  </div>

  </div>

  <divclass="responsive">

  <divclass="img">

  <atarget="_blank"href="https://cache.yisu.com/upload/information/20220117/488/49233.jpg">

  <imgsrc="https://cache.yisu.com/upload/information/20220117/488/49233.jpg"alt="图片文本描述"width="300"height="200">

  </a>

  <divclass="desc">这里添加图片文本描述</div>

  </div>

  </div>

  <divclass="responsive">

  <divclass="img">

  <atarget="_blank"href="https://cache.yisu.com/upload/information/20220117/488/49234.jpg">

  <imgsrc="https://cache.yisu.com/upload/information/20220117/488/49234.jpg"alt="图片文本描述"width="300"height="200">

  </a>

  <divclass="desc">这里添加图片文本描述</div>

  </div>

  </div>

  <divclass="responsive">

  <divclass="img">

  <atarget="_blank"href="https://cache.yisu.com/upload/information/20220117/488/49235.jpg">

  <imgsrc="https://cache.yisu.com/upload/information/20220117/488/49235.jpg"alt="图片文本描述"width="300"height="200">

  </a>

  <divclass="desc">这里添加图片文本描述</div>

  </div>

  </div>

  </body>

  </html>

以上是“怎么用css实现类似图片画廊的图片排序”这篇文章的所有内容,感谢各位的阅读!希望分享的内容对大家有帮助,更多相关知识,欢迎关注云搜网行业资讯频道!

赞(0)
【声明】:本博客不参与任何交易,也非中介,仅记录个人感兴趣的主机测评结果和优惠活动,内容均不作直接、间接、法定、约定的保证。访问本博客请务必遵守有关互联网的相关法律、规定与规则。一旦您访问本博客,即表示您已经知晓并接受了此声明通告。