QQ客服
当前位置 : 上海时时乐开奖彩经 > 代码 > 网页特效 > div css > 红色的发展历程时间轴div布局代码

新疆时时彩上海时时乐: 红色的发展历程时间轴div布局代码

【原创】div css3制作一款红色的发展历程历史事件,时间轴上相应增加时间节点 并且按需求左右排列。 实现:css3 选择器(]nth-child(odd)[/color]/]nth-child(even)[/color] )
分享到微信朋友圈
X

使用方法:

1、head引入css文件

<link type="text/css" href="css/style.css" rel="stylesheet" />

2、head引入js文件

<script type="text/javascript" src="js/jquery.min.js"></script>

3、body引入部分

<div class="cont">

	<div class="biz_title">
		<h2>发展历程</h2>
		<p>CONMPANY HISTORY</p>
	</div>
	
	<div class="biz_timtline-box">
		<div class="biz_timeline">
			<div class="biz-timeline-box  clearfix">
				<div class="biz_timeline-time">2012.12</div>
				<div class="biz_timeline-node"></div>
				<div class="biz_timeline-eventbox">
					<div class="biz_timeline-event">公司成立</div>
				</div>
			</div>
			<div class="biz-timeline-box  clearfix">
				<div class="biz_timeline-time">2013.02</div>
				<div class="biz_timeline-node"></div>
				<div class="biz_timeline-eventbox">
					<div class="biz_timeline-event">园区业务方向</div>
				</div>
			</div>
			<div class="biz-timeline-box  clearfix">
				<div class="biz_timeline-time">2014.03</div>
				<div class="biz_timeline-node"></div>
				<div class="biz_timeline-eventbox">
					<div class="biz_timeline-event">获天使轮投资900万元</div>
				</div>
			</div>
			<div class="biz-timeline-box  clearfix">
				<div class="biz_timeline-time">2013.09</div>
				<div class="biz_timeline-node"></div>
				<div class="biz_timeline-eventbox">
					<div class="biz_timeline-event">业务转型互联网营销</div>
				</div>
			</div>
			<div class="biz-timeline-box  clearfix">
				<div class="biz_timeline-time">2016.06</div>
				<div class="biz_timeline-node"></div>
				<div class="biz_timeline-eventbox">
					<div class="biz_timeline-event">V1.0版本上线</div>
				</div>
			</div>
			<div class="biz-timeline-box  clearfix">
				<div class="biz_timeline-time">2017.03</div>
				<div class="biz_timeline-node"></div>
				<div class="biz_timeline-eventbox">
					<div class="biz_timeline-event">期待。。。。</div>
				</div>
			</div>
		</div>
		<div class="biz_longString"></div>
	</div>
	
</div>

<script type="text/javascript">
$(function(){
	var item = $(".biz-timeline-box").length;
	var height = $(".biz-timeline-box")[0].offsetHeight + 45;
	$(".biz_longString").css('height',height*item+57);
})
</script>
[声明]本站素材来自用户分享,仅限学习交流请勿用于商业用途。如损害你的权益请联系客服QQ:2447402004给予处理。
举报×
举报原因:

推荐标签

相关代码

二维码
意见反馈
×
×

注册

QQ注册 立即下载 上海时时乐开奖彩经

签到成功!

已连续签到1天,签到3天将获得积分VIP1天

知道了