没有合适的资源?快使用搜索试试~ 我知道了~
本文实例为大家分享了js瀑布流布局学习资料,供大家参考,具体内容如下 特点:等宽不等高。 实现方式:Javascript/Jquery/CSS3多栏布局。 样例网站:花瓣网–>分类 一、JS实现瀑布流 index.html:页面结构 <!DOCTYPE html> <html lang=en> <head> <meta charset=UTF-8> <title>瀑布流布局</title> <link rel=stylesheet href=styles/layout.css> </head> <body> <div id=main> <
资源推荐
资源详情
资源评论
深入学习深入学习js瀑布流布局瀑布流布局
本文实例为大家分享了js瀑布流布局学习资料,供大家参考,具体内容如下
特点:特点:等宽不等高。
实现方式:实现方式:Javascript/Jquery/CSS3多栏布局。
样例网站:花瓣网–>分类
一、一、JS实现瀑布流实现瀑布流
index.html:页面结构
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>瀑布流布局</title>
<link rel="stylesheet" href="styles/layout.css">
</head>
<body>
<div id="main">
<div class="box"><div class="pic"><img src="../waterFall/pic/0.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/1.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/2.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/3.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/4.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/5.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/6.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/7.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/8.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/9.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/10.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/11.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/12.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/13.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/14.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/15.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/16.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/17.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/18.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/19.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/20.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/21.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/22.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/23.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/24.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/25.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/26.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/27.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/28.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/29.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/30.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/31.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/32.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/33.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/34.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/35.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/36.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/37.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/38.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/39.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/40.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/41.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/42.jpg" alt=""></div></div>
<div class="box"><div class="pic"><img src="../waterFall/pic/43.jpg" alt=""></div></div>
</div>
<script src="scripts/waterfall.js"></script>
</body>
</html>
layout.css:页面元素样式
*{
pdding:0;
margin:0;
}
资源评论
weixin_38606206
- 粉丝: 3
- 资源: 926
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于Qt框架的智能交通查询系统.zip
- 《计算机视觉技术》实验报告-8.1提取车辆轮廓
- HengCe-23900-2024年全球半导体废气处理设备行业总体规模、主要企业国内外市场占有率及排名-样本.docx
- (源码)基于PaddleClas和WatchDog的智慧相册管理系统.zip
- (源码)基于Spring Boot和MyBatis的学生管理系统.zip
- HengCe-18900-2024-2030中国室内木门市场现状研究分析与发展前景预测报告-样本.docx
- 8.2 读取道路车流视频文件,标注出经过的车辆
- HengCe-18900-2024-2030中国全自动泳池清洁机器人市场现状研究分析与发展前景预测报告-样本.docx
- HengCe-18900-2024-2030全球与中国半导体废气处理设备市场现状及未来发展趋势-样本.docx
- (源码)基于ucore操作系统的实验项目.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功