3、HTML代码
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""><html xmlns="">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>时间轴</title>
<link rel="stylesheet" type="text/css" href="css/history.css">
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="js/jquery.easing.js"></script>
<script type="text/javascript" src="js/history.js"></script>
</head>
<body>
<p id="arrow">
<ul>
<li class="arrowup"></li>
<li class="arrowdown"></li>
</ul>
</p>
<p id="history">
<p class="title">
<h2>生活轨迹</h2>
<p id="circle">
<p class="cmsk"></p>
<p class="circlecontent">
<p thisyear="20170115" class="timeblock">
<span class="numf"></span>
<span class="nums"></span>
<span class="numt"></span>
<span class="numfo"></span>
<p class="clear"></p>
</p>
<p class="timeyear">YEAR</p>
</p>
<a href="#" class="clock"></a>
</p>
</p>
<p id="content">
<ul class="list">
<li style="margin-top:-110px;">
<p class="liwrap">
<p class="lileft">
<p class="date">
<span class="year">20170115</span>
<span class="md">8:00</span>
</p>
</p>
<p class="point"><b></b></p>
<p class="liright">
<p class="histt"><a href="#">出入口系统</a></p>
</p>
</p>
</li>
<li>
<p class="liwrap">
<p class="lileft">
<p class="date">
<span class="year">20170115</span>
<span class="md">8:30</span>
</p>
</p>
<p class="point"><b></b></p>
<p class="liright">
<p class="histt"><a href="#">门禁系统</a></p>
</p>
</p>
</li>
<li>
<p class="liwrap">
<p class="lileft">
<p class="date">
<span class="year">20170115</span>
<span class="md">9:00</span>
</p>
</p>
<p class="point"><b></b></p>
<p class="liright">
<p class="histt"><a href="#">停车场系统</a></p>
<p class="hisct">豫E87N90 离开停车场</p>
</p>
</p>
</li>
<li>
<p class="liwrap">
<p class="lileft">
<p class="date">
<span class="year">20170115</span>
<span class="md">12:30</span>
</p>
</p>
<p class="point"><b></b></p>
<p class="liright">
<p class="histt"><a href="#">停车场系统</a></p>
<p class="hisct">豫E87N90 驶入停车场</p>
</p>
</p>
</li>
<li>
<p class="liwrap">
<p class="lileft">
<p class="date">
<span class="year">20170115</span>
<span class="md">13:00</span>
</p>
</p>
<p class="point"><b></b></p>
<p class="liright">
<p class="histt"><a href="#">人脸识别系统</a></p>
</p>
</p>
</li>
<li>
<p class="liwrap">
<p class="lileft">
<p class="date">
<span class="year">20170115</span>
<span class="md">14:00</span>
</p>
</p>
<p class="point"><b></b></p>
<p class="liright">
<p class="histt"><a href="#">非机动车系统</a></p>
<p class="hisct">黑色电动车 离开车棚</p>
</p>
</p>
</li>
<li>
<p class="liwrap">
<p class="lileft">
<p class="date">
<span class="year">20170115</span>
<span class="md">16:30</span>
</p>
</p>
<p class="point"><b></b></p>
<p class="liright">
<p class="histt"><a href="#">非机动车系统</a></p>
<p class="hisct">黑色电动车 驶入车棚</p>
</p>
</p>
</li>
<li>
<p class="liwrap">
<p class="lileft">
<p class="date">
<span class="year">20170115</span>
<span class="md">17:00</span>
</p>
</p>
<p class="point"><b></b></p>
<p class="liright">
<p class="histt"><a href="#">视频监控系统</a></p>
</p>
</p>
</li>
</ul>
</p>
</p>
</body>
</html>
4、运行的效果:
三、纵向可折叠时间轴1、js文件(jQuery.js和 main.js)