加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
pubu1.html 2.70 KB
一键复制 编辑 原始数据 按行查看 历史
chenjianwei01 提交于 2022-05-24 15:03 . 添加轮播图实现
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<div class="home">
<div>
<img class="main_img img-hover"
src="https://img2.baidu.com/it/u=4201222864,4041053760&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=GIF?w=485&amp;h=422"
style="width: 275px; height: 240px; background-color: rgb(255, 255, 255);">
</div>
<div>
<img class="main_img img-hover"
src="https://img1.baidu.com/it/u=3137752502,1535259864&fm=253&fmt=auto&app=138&f=PNG?w=500&h=288"
style="width: 416px; height: 240px;; background-color: rgb(255, 255, 255);">
</div>
<div>
<img class="main_img img-hover"
src="https://img0.baidu.com/it/u=1608484515,4031396427&fm=253&fmt=auto&app=138&f=JPEG?w=500&h=422"
style="width: 275px; height: 240px; background-color: rgb(255, 255, 255);">
</div>
<div>
<img class="main_img img-hover"
src="https://img2.baidu.com/it/u=4201222864,4041053760&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=GIF?w=485&amp;h=422"
style="width: 271px; height: 240px;; background-color: rgb(255, 255, 255);">
</div>
<div>
<img class="main_img img-hover"
src="https://img2.baidu.com/it/u=4201222864,4041053760&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=GIF?w=485&amp;h=422"
style="width: 275px; height: 240px; background-color: rgb(255, 255, 255);">
</div>
<div>
<img class="main_img img-hover"
src="https://img2.baidu.com/it/u=4201222864,4041053760&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=GIF?w=485&amp;h=422"
style="width: 275px; height: 240px; background-color: rgb(255, 255, 255);">
</div>
<div>
<img class="main_img img-hover"
src="https://img2.baidu.com/it/u=4201222864,4041053760&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=GIF?w=485&amp;h=422"
style="width: 275px; height: 240px; background-color: rgb(255, 255, 255);">
</div>
<div>
<img class="main_img img-hover"
src="https://img2.baidu.com/it/u=4201222864,4041053760&amp;fm=253&amp;fmt=auto&amp;app=138&amp;f=GIF?w=485&amp;h=422"
style="width: 275px; height: 240px; background-color: rgb(255, 255, 255);">
</div>
</div>
</body>
<style>
.home{
column-count: 4;
column-gap: 10px;
}
.home div{
text-align: center;
box-sizing: border-box;
border: 1px solid red;
break-inside:avoid /*控制文本块分解成单独的列,以免项目列表的内容跨列*/
}
</style>
</html>
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化