js实现瀑布流式tab标签数据筛选效果代码
代码语言:html
所属分类:选项卡
代码描述:js实现瀑布流式tab标签数据筛选效果代码,将所有的数据一次性加载,然后点击不同标签筛选不同的数据显示出来,有动画过渡效果。
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="zh">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
body, html { font-size: 100%; padding: 0; margin: 0;}
/* Reset */
*,
*:after,
*:before {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
/* Clearfix hack by Nicolas Gallagher: http://nicolasgallagher.com/micro-clearfix-hack/ */
.clearfix:before,
.clearfix:after {
content: " ";
display: table;
}
.clearfix:after {
clear: both;
}
body{
background: #494A5F;
color: #D5D6E2;
font-weight: 500;
font-size: 1.05em;
font-family: "Microsoft YaHei","Segoe UI", "Lucida Grande", Helvetica, Arial,sans-serif;
}
:root{
--main-bg-color: #ff7675;
}
*,
*::after,
*::before{
box-sizing: border-box;
}
html{
font-size: .625em;
font-size: calc(1em * .625);
background: #f4f4f4;
-ms-text-size-adjust: 100%;
-webkit-text-size-adjust: 100%;
}
body{
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
margin: 0;
padding: 0;
font: normal 300 1.4em / 1.2 'Open-sans', helvetica, sans-serif;
color: #111;
}
a{
text-decoration: none;
color: #111;
cursor: pointer;
}
ol,
ul{
list-style: none;
margin: 0;
padding: 0;
}
img{
max-width: 100%;
}
b,
strong{
font-weight: 600;
}
hr{
background: #111;
box-shadow: none;
border: none;
height: 1px;
width: 100%;
margin: 10px 0;
}
::selec.........完整代码请登录后点击上方下载按钮下载查看
网友评论0