任务01-03

HTML:

<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<link href="css/index.css" type="text/css" rel="stylesheet"/>
		<title></title>
	</head>
	<body>
		<div class="main">
			<!-- 导航条 -->
			<div class="nav">
				<img src="img/a.png" />
				<a href="###" class="nav_frist">首页</a>
				<a href="###">招投标</a>
				<a href="###">机械加盟</a>
				<a href="###">行业资讯</a>
				<a href="###">关于我们</a>
			</div>
			<!-- 图片 -->
			<img src="img/k.png" />
			<!-- 招标信息 -->
			<p class="wenzi"><b>最新招标</b></p>
			<div class="content">
				<!-- 第一个模块 -->
				<div class="one">
					<img src="img/j.png" />
					<p class="one_font">科技出手,功力双收</p>
					<p>将军闭目弹整德,只因眼前无敌手。
					笔落才气冲星斗,龙翔凤霹势难收。
					满堂花醉三千客,一剑寒霜十四州。
					鼓角揭天嘉气冷,风涛地动海山秋。
					将军闭目弹箩筷,只因眼前无敌手。
					笔落才气冲星斗,龙翔凤嘉势难收。
					满堂花醉三千客,一剑寒霜十四州。
					鼓角揭天嘉气冷,风涛地动海山秋。</p>
					<div class="detail">
						了解详情>
					</div>
					<!-- 第二个模块 -->
					<div class="two">
					<img src="img/g.png" />
					<p class="one_font">科技出手,功力双收</p>
					<p>将军闭目弹整德,只因眼前无敌手。
					笔落才气冲星斗,龙翔凤霹势难收。
					满堂花醉三千客,一剑寒霜十四州。
					鼓角揭天嘉气冷,风涛地动海山秋。
					将军闭目弹箩筷,只因眼前无敌手。
					笔落才气冲星斗,龙翔凤嘉势难收。
					满堂花醉三千客,一剑寒霜十四州。
					鼓角揭天嘉气冷,风涛地动海山秋。</p>
					<div class="detail">
						了解详情>
					</div>
					</div>
					<!-- 第三个模块 -->
					<div class="one">
					<img src="img/f.png" />
					<p class="one_font">科技出手,功力双收</p>
					<p>将军闭目弹整德,只因眼前无敌手。
					笔落才气冲星斗,龙翔凤霹势难收。
					满堂花醉三千客,一剑寒霜十四州。
					鼓角揭天嘉气冷,风涛地动海山秋。
					将军闭目弹箩筷,只因眼前无敌手。
					笔落才气冲星斗,龙翔凤嘉势难收。
					满堂花醉三千客,一剑寒霜十四州。
					鼓角揭天嘉气冷,风涛地动海山秋。</p>
					<div class="detail">
						了解详情>
					</div>
					</div>
					<p class="wenzi"><b>招标信息</b></p>
					<!-- 第二个大板块 -->
					<div class="content_two">
						<div class="two_one">
						<img src="img/i.png" />
						<p class="one_font">科技出手,功力双收</p>
						<p>将军闭目弹整德,只因眼前无敌手。
						笔落才气冲星斗,龙翔凤霹势难收。
						满堂花醉三千客,一剑寒霜十四州。
						鼓角揭天嘉气冷,风涛地动海山秋。
						将军闭目弹箩筷,只因眼前无敌手。
						笔落才气冲星斗,龙翔凤嘉势难收。
						满堂花醉三千客,一剑寒霜十四州。
						鼓角揭天嘉气冷,风涛地动海山秋。</p>
					</div>
					<div class="two_two">
						<img src="img/h.png"/>
						<p class="one_font">科技出手,功力双收</p>
						<p>将军闭目弹整德,只因眼前无敌手。
						笔落才气冲星斗,龙翔凤霹势难收。
						满堂花醉三千客,一剑寒霜十四州。
						鼓角揭天嘉气冷,风涛地动海山秋。
						将军闭目弹箩筷,只因眼前无敌手。
						笔落才气冲星斗,龙翔凤嘉势难收。
						满堂花醉三千客,一剑寒霜十四州。
						鼓角揭天嘉气冷,风涛地动海山秋。</p>
					</div>
					<div class="two_three">
						<img src="img/d.png"/>
						<p class="one_font">科技出手,功力双收</p>
						<p>将军闭目弹整德,只因眼前无敌手。
						笔落才气冲星斗,龙翔凤霹势难收。
						满堂花醉三千客,一剑寒霜十四州。
						鼓角揭天嘉气冷,风涛地动海山秋。
						将军闭目弹箩筷,只因眼前无敌手。
						笔落才气冲星斗,龙翔凤嘉势难收。
						满堂花醉三千客,一剑寒霜十四州。
						鼓角揭天嘉气冷,风涛地动海山秋。</p>
					</div>
					<div class="two_four">
						<img src="img/c.png"/>
						<p class="one_font">科技出手,功力双收</p>
						<p>将军闭目弹整德,只因眼前无敌手。
						笔落才气冲星斗,龙翔凤霹势难收。
						满堂花醉三千客,一剑寒霜十四州。
						鼓角揭天嘉气冷,风涛地动海山秋。
						将军闭目弹箩筷,只因眼前无敌手。
						笔落才气冲星斗,龙翔凤嘉势难收。
						满堂花醉三千客,一剑寒霜十四州。
						鼓角揭天嘉气冷,风涛地动海山秋。</p>
					</div>
					</div>
				</div>
				</div>
			</div>
			<p class="wenzi"><b>中标告示</b></p>
			<div class="content_three">
				<div class="three_one">
					<p style="font-size: 30px;">09</p>
					<p >2018年03月</p><br />
					<hr width="50px" color="black" class="jianju"/><br />
					<p>笔落才气冲星斗,龙翔凤嘉势难收。
					满堂花醉三千客,一剑寒霜十四州。</p>
					<div class="detail_two">详细></div>
				</div>
				<div class="three_two">
					<p style="font-size: 30px;">09</p>
					<p >2018年03月</p><br />
					<hr width="50px" color="black" class="jianju"/><br />
					<p>笔落才气冲星斗,龙翔凤嘉势难收。
					满堂花醉三千客,一剑寒霜十四州。</p>
					<div class="detail_two">详细></div>
				</div>
				<div class="three_three">
					<p style="font-size: 30px;">09</p>
					<p >2018年03月</p><br />
					<hr width="50px" color="black" class="jianju"/><br />
					<p>笔落才气冲星斗,龙翔凤嘉势难收。
					满堂花醉三千客,一剑寒霜十四州。</p>
					<div class="detail_two">详细></div>
				</div>
				<div class="sanjiaoxing"></div>
				<div class="erweima" align="center">
					<img src="img/b.png" /><br />
					<span>二维码</span>
				</div>
				<div class="last">
					<img src="img/a.png" style="margin-top: 100px; margin-left: 100px;"/><br />
					<span class="top">工作客户端</span>
					<span class="top">机械客户端</span><br />
					<div class="hezi">AppStore下载</div>
					<div class="hezi1">AppStore下载</div><br />
					<div class="hezi">AppStore下载</div>
					<div class="hezi1">AppStore下载</div>
				</div>
				<div class="banquan">
					<p>Copyright c 2015-2018轰隆隆honglonglong.All Rights Reserved.</p>
					<p class="banquan_one">京ICP备15045098号</p>
				</div>
			</div>
		</div>
	</body>
</html>

css:

.main{
	overflow: hidden;
}
.main .nav{
	height: 55px;
	background-color: rgb(50,72,128);
}
.nav img{
	margin-left: 200px;
	float: left;
}
.nav a{
	/* 去掉a标签下面的下划线 */
	text-decoration: none;
	margin-left: 100px;
	text-align: center;
	line-height: 55px;
	color: rgb(240,240,242);
}
.nav .nav_frist{
	margin-left: 200px;
}
.wenzi{
	text-align: center;
	font-size: 18px;
}
.content{
	margin-left: 320px;
}
.content .one{
	height: 295px;
	width: 1000px;
	border: 3px solid rgb(137,134,134);
	background-color: rgb(234,234,234);
}
.content .two{
	height: 295px;
	width: 1000px;
	border: 3px solid rgb(137,134,134);
	background-color: rgb(234,234,234);
	margin-top: 150px;
	margin-bottom: 10px;
}
.one img{
	float: left;
	margin-right: 25px;
}
.two img{
	float: right;
	margin: 0;
	margin-left: 20px;
}
.two p{
	margin-left: 20px;
}
.one_font{
	font-size: 20px;
	font-weight: bold;
}
.one .detail{
	width: 130px;
	height: 50px;
	border: 2px solid rgb(128,130,131);
	float: right;
	text-align: center;
	line-height: 50px;
	margin-right: 50px;
	margin-top: 30px;
	font-size: 20px;
}
.two .detail{
	width: 130px;
	height: 50px;
	border: 2px solid rgb(128,130,131);
	float: left;
	text-align: center;
	line-height: 50px;
	margin-left: 10px;
	margin-top: 30px;
	font-size: 20px;
}
.content_two .two_one{
	width: 500px;
	height: 250px;
	border: 1px solid white;
	float: left;
}
.content_two .two_three{
	width: 500px;
	height: 250px;
	float: left;
}
.content_three .three_one{
	width: 250px;
	height: 300px;
	background-color: rgb(244,247,251);
	margin-left: 320px;
}
.content_three .three_two{
	width: 250px;
	height: 300px;
	background-color: rgb(244,247,251);
	margin-left: 670px;
	margin-top: -330px;
}
.content_three .three_three{
	width: 250px;
	height: 300px;
	background-color: rgb(244,247,251);
	margin-left: 990px;
	margin-top: -330px;
}
.content_three .three_one p{
	margin-left: 10px;
}
.content_three .three_two p{
	margin-left: 10px;
}
.content_three .three_three p{
	margin-left: 10px;
}
.content_three .three_one .jianju{
	margin-left: 10px;
}
.content_three .three_two .jianju{
	margin-left: 10px;
}
.content_three .three_three .jianju{
	margin-left: 10px;
}
.content_three .three_one hr{
	float: left;
}
.content_three .three_two hr{
	float: left;
	margin-top: -110px;
}
.content_three .three_three hr{
	float: left;
	margin-top: -110px;
}
.content_three .three_one .detail_two{
	float: left;
	margin-left: 20px;
}
.content_three .three_two .detail_two{
	float: left;
	margin-left: 20px;
}
.content_three .three_three .detail_two{
	float: left;
	margin-left: 20px;
}
.last{
	height: 300px;
	background-color: rgb(50,72,128);
	margin-top: 200px;

}
.last img{
	float: left;
}
.last .top{
	margin-left: 100px;
	color: #FFFFFF;
}
.last .hezi{
	width: 110px;
	height: 30px;
	border:  1px solid #FFFFFF;
	margin-left: 100px;
	color: #FFFFFF;
	margin-bottom: 20px;
	display: inline-block;
	margin-top: 10px;
}
.last .hezi1{
	width: 110px;
	height: 30px;
	border:  1px solid #FFFFFF;
	margin-left: 50px;
	color: #FFFFFF;
	margin-bottom: 20px;
	display: inline-block;
	margin-top: 10px;
}
.banquan{
	height: 50px;
	background-color: black;
}
.banquan p{
	color: #FFFFFF;
	margin-left: 350px;
	text-align: center;
	display: inline-block;
}
.banquan .banquan_one{
	margin-left: 100px;
}
.erweima{
	width: 200px;
	height: 200px;
	float: right;
	background-color: #000000;
	margin-top:150px;
	margin-right: 150px;
	position: relative;
}
.erweima img{
	margin-top: 35px;
}
.erweima span{
	color: #FFFFFF;
	text-align: center;
}
.sanjiaoxing{
	width: 0px;
	border-bottom: 25px solid black;
	border-right: 25px solid black;
	border-left: 25px solid transparent;
	border-top: 25px solid transparent;
	margin-top: 150px;
	position: absolute;
	margin-left: 1480px;

}

 案例展示:

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
要实现甘特图,需要使用Echarts的Gantt模块。首先,需要引入Echarts和Gantt模块的JS文件,在HTML中建立一个容器用于渲染图表。然后,需要定义一个包含任务信息的JSON数据,例如funListT07。最后,使用Echarts的API绘制甘特图,可以参考以下代码: ``` // 引入Echarts和Gantt模块 <script src="https://cdn.jsdelivr.net/npm/echarts/dist/echarts.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/echarts/dist/extension/dataTool.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/echarts/dist/extension/bmap.min.js"></script> <script src="https://cdn.jsdelivr.net/npm/echarts/dist/extension/gantt.min.js"></script> // 在HTML中建立容器 <div id="container" style="height:600px;"></div> // 定义任务信息的JSON数据 var data = [ { id: 1, name: "零部件01", start: "2022-01-01", end: "2022-01-05", }, { id: 2, name: "零部件02", start: "2022-01-03", end: "2022-01-08", }, { id: 3, name: "零部件03", start: "2022-01-06", end: "2022-01-10", }, { id: 4, name: "零部件04", start: "2022-01-02", end: "2022-01-09", }, { id: 5, name: "零部件05", start: "2022-01-05", end: "2022-01-10", }, { id: 6, name: "零部件06", start: "2022-01-06", end: "2022-01-12", }, { id: 7, name: "零部件07", start: "2022-01-03", end: "2022-01-10", }, ]; // 绘制甘特图 var chart = echarts.init(document.getElementById('container')); var option = { tooltip: {}, legend: { data: ['任务'], textStyle: { fontSize: 14, }, }, grid: { top: '10%', bottom: '10%', }, xAxis: { type: 'time', splitLine: { show: false, }, }, yAxis: { type: 'category', data: data.map(function (item) { return item.name; }), splitLine: { show: false, }, }, series: [ { name: '任务', type: 'gantt', data: data.map(function (item) { return { name: item.name, value: [ item.start, item.end, item.id, ], }; }), label: { position: 'inside', formatter: function (params) { return params.name; }, }, }, ], }; chart.setOption(option); ``` 以上代码就可以绘制出funListT07的甘特图了。需要注意的是,数据中的日期格式必须为"yyyy-MM-dd",并且时间轴的类型必须为"time"。同时,还可以根据需要进行其他的样式和配置调整。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值