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天

知道了
cc竞速飞车公式规律