静态网页布局练习项目开发

效果图

 

 

html代码 

<!DOCTYPE html>
<html>

<head>
	<meta charset="utf-8">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<title>学成在线</title>
	<link rel="stylesheet" type="text/css" href="学成在线.css">
</head>

<body>
	<!-- 顶部 -->
	<div class="top">
		<div class="top_one">
			<div class="top_one_one"></div>
			<div class="top_one_two">
				<div class="top_one_two_one">
					<a href="#">首页</a>
					<a href="#">课程</a>
					<a href="#" class="a_right">职业规划</a>
				</div>
				<div class="top_one_two_two">
					<input type="text" value="输入关键词">
					<button></button>
				</div>
				<div class="top_one_two_three"></div>
			</div>
		</div>
	</div>
	<!-- 上半部 -->
	<div class="upper">
		<div class="upper_one">
			<div class="upper_one_one">
				<ul class="upper_one_one_one">
					<li><a href="#"><span>前端开发</span><span class="upper_right">></span></a></li>
					<li><a href="#"><span>后端开发</span><span class="upper_right">></span></a></li>
					<li><a href="#"><span>移动开发</span><span class="upper_right">></span></a></li>
					<li><a href="#"><span>人工智能</span><span class="upper_right">></span></a></li>
					<li><a href="#"><span>商业预测</span><span class="upper_right">></span></a></li>
					<li><a href="#"><span>云计算&大数据</span><span class="upper_right">></span></a></li>
					<li><a href="#"><span>运维&从测试</span><span class="upper_right">></span></a></li>
					<li><a href="#"><span>UI设计</span><span class="upper_right">></span></a></li>
					<li><a href="#"><span>产品</span><span class="upper_right">></span></a></li>
				</ul>
			</div>
			<div class="upper_one_two">
				<div class="upper_one_two_one">我的课程表</div>
				<div class="upper_one_two_two">
					<a href="#" class="B">
						<div>继续学习 程序语言设计</div>
						<div class="A">正在学习-使用对象</div>
					</a>
					<a href="#">
						<div>继续学习 程序语言设计</div>
						<div class="A">正在学习-使用对象</div>
					</a>
					<a href="#">
						<div>继续学习 程序语言设计</div>
						<div class="A">正在学习-使用对象</div>
					</a>
					<a href="#">
						<div class="blue_border">全部课程</div>
					</a>
				</div>
			</div>
		</div>
	</div>
	<!-- body -->
	<div class="body">
		<div class="body_interest">
			<a href="#" class="A">精品推荐</a>
			<div>|</div>
			<a href="#">JQuery</a>
			<div>|</div>
			<a href="#">Spark</a>
			<div>|</div>
			<a href="#">MySQL</a>
			<div>|</div>
			<a href="#">JavaWeb</a>
			<div>|</div>
			<a href="#">MySQL</a>
			<div>|</div>
			<a href="#">JavaWeb</a>
			<a href="#" class="a">修改兴趣</a>
		</div>
		<div class="tui_jian">
			<div>精品推荐</div>
			<a href="#">查看全部</a>
		</div>
		<div class="jing_pin clearfix">
			<ul>
				<li>
					<a href="#">
						<h4>Android Hybrid APP开发实战H5+原生 !</h4>
						<div>
							<span class="color">高级</span>
							<span class="text-color"> · </span>
							<span class="text-color">1125人学习</span>
						</div>
					</a>
				</li>
				<li>
					<a href="#">
						<h4>Android Hybrid APP开发实战H5+原生 !</h4>
						<div>
							<span class="color">高级</span>
							<span class="text-color"> · </span>
							<span class="text-color">1125人学习</span>
						</div>
					</a>
				</li>
				<li>
					<a href="#">
						<h4>Android Hybrid APP开发实战H5+原生 !</h4>
						<div>
							<span class="color">高级</span>
							<span class="text-color"> · </span>
							<span class="text-color">1125人学习</span>
						</div>
					</a>
				</li>
				<li>
					<a href="#">
						<h4>Android Hybrid APP开发实战H5+原生 !</h4>
						<div>
							<span class="color">高级</span>
							<span class="text-color"> · </span>
							<span class="text-color">1125人学习</span>
						</div>
					</a>
				</li>
				<li class="jian_ge">
					<a href="#">
						<h4>Think PHP 5.0 博客系统实战项目演练</h4>
						<div>
							<span class="color">高级</span>
							<span class="text-color"> · </span>
							<span class="text-color">1125人学习</span>
						</div>
					</a>
				</li>
				<li>
					<a href="#">
						<h4>Android Hybrid APP开发实战H5+原生 !</h4>
						<div>
							<span class="color">高级</span>
							<span class="text-color"> · </span>
							<span class="text-color">1125人学习</span>
						</div>
					</a>
				</li>
				<li>
					<a href="#">
						<h4>Android Hybrid APP开发实战H5+原生 !</h4>
						<div>
							<span class="color">高级</span>
							<span class="text-color"> · </span>
							<span class="text-color">1125人学习</span>
						</div>
					</a>
				</li>
				<li>
					<a href="#">
						<h4>Android Hybrid APP开发实战H5+原生 !</h4>
						<div>
							<span class="color">高级</span>
							<span class="text-color"> · </span>
							<span class="text-color">1125人学习</span>
						</div>
					</a>
				</li>
				<li>
					<a href="#">
						<h4>Android Hybrid APP开发实战H5+原生 !</h4>
						<div>
							<span class="color">高级</span>
							<span class="text-color"> · </span>
							<span class="text-color">1125人学习</span>
						</div>
					</a>
				</li>
				<li class="jian_ge">
					<a href="#">
						<h4>Think PHP 5.0 博客系统实战项目演练</h4>
						<div>
							<span class="color">高级</span>
							<span class="text-color"> · </span>
							<span class="text-color">1125人学习</span>
						</div>
					</a>
				</li>
			</ul>
		</div>
		<div class="tui_jian">
			<div>编程入门</div>
			<div class="N">
				<a href="#" class="M">热门</a>
				<a href="#" class="M">初级</a>
				<a href="#" class="M">中级</a>
				<a href="#" class="M">高级</a>
			</div>
			<a href="#">查看全部</a>
		</div>
		<div class="bian_cheng">
			<div class="a"></div>
			<div class="b">
				<div class="c"></div>
				<ul>
					<li class="jian_ge">
						<a href="#">
							<h4>Think PHP 5.0 博客系统实战项目演练</h4>
							<div>
								<span class="color">高级</span>
								<span class="text-color"> · </span>
								<span class="text-color">1125人学习</span>
							</div>
						</a>
					</li>
					<li class="jian_ge">
						<a href="#">
							<h4>Think PHP 5.0 博客系统实战项目演练</h4>
							<div>
								<span class="color">高级</span>
								<span class="text-color"> · </span>
								<span class="text-color">1125人学习</span>
							</div>
						</a>
					</li>
					<li class="jian_ge">
						<a href="#">
							<h4>Think PHP 5.0 博客系统实战项目演练</h4>
							<div>
								<span class="color">高级</span>
								<span class="text-color"> · </span>
								<span class="text-color">1125人学习</span>
							</div>
						</a>
					</li>
					<li class="jian_ge jiange">
						<a href="#">
							<h4>Think PHP 5.0 博客系统实战项目演练</h4>
							<div>
								<span class="color">高级</span>
								<span class="text-color"> · </span>
								<span class="text-color">1125人学习</span>
							</div>
						</a>
					</li>
				</ul>
			</div>
		</div>
		<div class="tui_jian">
			<div>编程入门</div>
			<div class="N">
				<a href="#" class="M">热门</a>
				<a href="#" class="M">初级</a>
				<a href="#" class="M">中级</a>
				<a href="#" class="M">高级</a>
			</div>
			<a href="#">查看全部</a>
		</div>
		<div class="bian_cheng">
			<div class="a"></div>
			<div class="b">
				<div class="c"></div>
				<ul>
					<li class="jian_ge">
						<a href="#">
							<h4>Think PHP 5.0 博客系统实战项目演练</h4>
							<div>
								<span class="color">高级</span>
								<span class="text-color"> · </span>
								<span class="text-color">1125人学习</span>
							</div>
						</a>
					</li>
					<li class="jian_ge">
						<a href="#">
							<h4>Think PHP 5.0 博客系统实战项目演练</h4>
							<div>
								<span class="color">高级</span>
								<span class="text-color"> · </span>
								<span class="text-color">1125人学习</span>
							</div>
						</a>
					</li>
					<li class="jian_ge">
						<a href="#">
							<h4>Think PHP 5.0 博客系统实战项目演练</h4>
							<div>
								<span class="color">高级</span>
								<span class="text-color"> · </span>
								<span class="text-color">1125人学习</span>
							</div>
						</a>
					</li>
					<li class="jian_ge jiange">
						<a href="#">
							<h4>Think PHP 5.0 博客系统实战项目演练</h4>
							<div>
								<span class="color">高级</span>
								<span class="text-color"> · </span>
								<span class="text-color">1125人学习</span>
							</div>
						</a>
					</li>
				</ul>
			</div>
		</div>
	</div>
	<!-- bottom -->
	<div class="bottom">
		<div class="bottom_one">
			<div class="bottom_one_one">
				<div class="top_one_one"></div>
				<p>学成在线致力于普及中国最好的教育它与中国一流大学和机构合作提供在线课程。 © 2017年XTCG Inc.保留所有权利。-沪I
					CP备-15025210号
				</p>
				<div class="a">下载APP</div>
			</div>
			<div class="bottom_one_two">
				<table>
					<tr>
						<th>关于学成网</th>
					</tr>
					<tr>
						<td>关于</td>
					</tr>
					<tr>
						<td>管理团队</td>
					</tr>
					<tr>
						<td>工作机会</td>
					</tr>
					<tr>
						<td>客户服务</td>
					</tr>
					<tr>
						<td>帮助</td>
					</tr>
				</table>
				<table>
					<tr>
						<th>新手指南</th>
					</tr>
					<tr>
						<td>如何注册</td>
					</tr>
					<tr>
						<td>如何选课</td>
					</tr>
					<tr>
						<td>如何拿到毕业证</td>
					</tr>
					<tr>
						<td>学分是什么</td>
					</tr>
					<tr>
						<td>考试未通过怎么办</td>
					</tr>
				</table>
				<table class="A">
					<tr>
						<th>合作伙伴</th>
					</tr>
					<tr>
						<td>合作机构</td>
					</tr>
					<tr>
						<td>合作导师</td>
					</tr>
				</table>
			</div>
		</div>
	</div>
</body>

</html>

                                                                                css代码

* {
	padding: 0;
	margin: 0;
}

.clearfix:before,
.clearfix:after {
	content: "";
	display: table;
}

.clearfix:after {
	clear: both;
}

.clearfix {
	*zoom: 1;
}

a {
	text-decoration: none;
	color: black;
}

body {
	background-color: #f3f5f7;
}

.top {
	height: 100px;
	width: 1919px;
	margin-left: auto;
	margin-right: auto;
	background-color: #f3f5f7;
}

.top_one {
	height: 100px;
	width: 1202px;
	margin-right: auto;
	margin-left: auto;
	background-color: #f3f5f7;
}

.top_one_one {
	height: 100px;
	width: 229px;
	float: left;
	background-color: #f3f5f7;
	background-image: url(images/logo.jpg);
	background-repeat: no-repeat;
}

.top_one_two {
	height: 100px;
	width: 973px;
	float: left;
	background-color: #f3f5f7;
}

.top_one_two_one {
	height: 100px;
	width: 378px;
	float: left;
	background-color: #f3f5f7;
}

.top_one_two_one a {
	line-height: 100px;
	margin-left: 37px;
	font-size: 17px;
}

.top_one_two_one a:active {
	border-bottom: #00a4ff 2px solid;
}

.a_right {
	margin-right: 95px;
}

.top_one_two_two {
	height: 100px;
	width: 411px;
	float: left;
	background-color: #f3f5f7;
}

.top_one_two_two button {
	height: 40px;
	width: 49px;
	background-image: url(images/搜索.png);
	background-repeat: no-repeat;
	float: left;
	margin-top: 30px;
	margin-bottom: 30px;
	border: 1px solid #00a4ff;
}

.top_one_two_two input {
	height: 38px;
	width: 360px;
	font-size: 14px;
	text-indent: 2em;
	line-height: 38px;
	border: 1px solid #00a4ff;
	color: #c6c7c7;
	margin-top: 30px;
	margin-bottom: 30px;
	float: left;
}

.top_one_two_two input:hover {
	border: 1px solid #00a4ff;
}

.top_one_two_three {
	height: 100px;
	width: 184px;
	float: left;
	background-color: #f3f5f7;
	background-image: url(images/登录状态.png);
	background-repeat: no-repeat;
	background-position: center;
}

.upper {
	height: 420px;
	width: 1919px;
	margin-left: auto;
	margin-right: auto;
	background-color: #1c036c;
}

.upper_one {
	height: 420px;
	width: 1202px;
	margin-left: auto;
	margin-right: auto;
	background-color: #1c036c;
	background-image: url(images/banner2.png);
	background-repeat: no-repeat;
}

.upper_one_one {
	height: 420px;
	width: 190px;
	float: left;
	background-color: rgba(19, 1, 75, 0.5);
}

.upper_one_one_one {
	list-style: none;
}

.upper_one_one_one li {
	margin-top: 15px;
	padding-left: 20px;
}

.upper_one_one_one li span {
	line-height: 30px;
	font-size: 12px;
	color: #d4d2da;
}

.upper_right {
	float: right;
	margin-right: 20px;
}

.upper_one_two {
	height: 300px;
	width: 229px;
	float: right;
	margin-top: 60px;
	margin-bottom: 60px;
}

.upper_one_two_one {
	color: #ffffff;
	width: 229px;
	height: 58px;
	background-color: #9bceea;
	line-height: 58px;
	text-align: center;
	letter-spacing: 3px;
}

.upper_one_two_two {
	width: 229px;
	height: 242px;
	background-color: #ffffff;
	color: #5a5a5a;
}

.upper_one_two_two div {
	color: #5a5a5a;
}

.upper_one_two_two a {
	display: block;
	height: 48px;
	width: 229px;
	text-align: center;
	padding-top: 10px;
}

.upper_one_two_two .B {
	height: 55px;
}

.upper_one_two_two .blue_border {
	width: 200px;
	height: 40px;
	border: #58b8ff solid 1px;
	color: #58b8ff;
	line-height: 40px;
	margin-left: 13.5px;
	margin-right: 13.5px;
}

.body {
	width: 1919px;
	height: 2383px;
	margin-left: auto;
	margin-right: auto;
	background-color: #f3f5f7;
}

.body_interest {
	height: 60px;
	width: 1202px;
	background-color: #ffffff;
	margin-left: auto;
	margin-right: auto;
	margin-top: 9px;

}

.body_interest a {
	height: 60px;
	width: 120px;
	float: left;
	text-align: center;
	line-height: 60px;
}

.body_interest div {
	height: 60px;
	width: 10px;
	float: left;
	text-align: center;
	line-height: 60px;
}

.body_interest .A {
	margin-left: 20px;
}

.body_interest .a {
	width: 100px;
	height: 60px;
	color: #00a4ff;
	font-size: 14px;
	float: right;
}

.tui_jian {
	height: 47px;
	width: 1202px;
	margin-left: auto;
	margin-right: auto;
	color: #707070;
	margin-top: 30px;
}

.tui_jian div {
	height: 47px;
	font-size: 19px;
	float: left;
}

.tui_jian a {
	height: 47px;
	font-size: 10px;
	float: right;
	color: #707070;
}

.tui_jian .M {
	font-size: 18px;
	float: none;
	margin-right: 50px;

}

.tui_jian .N {
	width: 500px;
	height: 47px;
	margin-left: 430px;
}

.jing_pin {
	width: 1202px;
	margin-left: auto;
	margin-right: auto;
}

.jing_pin ul li {
	list-style: none;
	width: 228px;
	height: 270px;
	background-color: #ffffff;
	background-image: url(images/andro.png);
	background-repeat: no-repeat;
	margin-right: 15.5px;
	margin-bottom: 15.5px;
	float: left;

}

.jing_pin .jian_ge {
	margin-right: 0;
	background-image: url(images/PHPTHINK.png);
}

.jing_pin ul li a h4 {
	height: 50px;
	width: 200px;
	text-align: center;
	margin-top: 180px;
	margin-left: 14px;
	margin-right: 14px;
}

.jing_pin ul li a div {
	height: 50px;
	width: 228px;
	text-align: center;
}

.color {
	color: #ff7c2d;
}

.text-color {
	color: #999999;
}

.bian_cheng {
	height: 393px;
	width: 1202px;
	margin-left: auto;
	margin-right: auto;
}

.bian_cheng .a {
	height: 393px;
	width: 229px;
	float: left;
	background-image: url(images/php\ .png);
	background-repeat: no-repeat;
}

.bian_cheng .b {
	height: 393px;
	width: 957px;
	float: right;
}

.bian_cheng li {
	list-style: none;
	width: 228px;
	height: 270px;
	background-color: #ffffff;
	background-image: url(images/andro.png);
	background-repeat: no-repeat;
	margin-right: 13px;
	margin-bottom: 15.5px;
	float: left;
}

.bian_cheng h4 {
	height: 50px;
	width: 200px;
	text-align: center;
	margin-top: 180px;
	margin-left: 14px;
	margin-right: 14px;
}

.bian_cheng div {
	height: 50px;
	width: 228px;
	text-align: center;
}

.bian_cheng .c {
	height: 100px;
	width: 957px;
	background-image: url(images/图层\ 155.png);
	background-repeat: no-repeat;
}

.bian_cheng ul {
	margin-top: 22px;
}

.bian_cheng .jiange {
	margin-right: 0px;
}

.bottom {
	height: 417px;
	width: 1919px;
	background-color: #ffffff;
	margin-left: auto;
	margin-right: auto;
}

.bottom_one {
	height: 417px;
	width: 1202px;
	background-color: #ffffff;
	margin-left: auto;
	margin-right: auto;
}
.bottom_one_one {
	height: 200px;
	width: 513px;
	float: left;
	
}
.bottom_one_two {
	height: 200px;
	width: 569px;
	float: right;
	
}
.bottom .top_one_one {
	height: 50px;
	width: 229px;
	float: left;
	margin-top: 50px;
	background-color: #ffffff;
	background-image: url(images/学成在线.png);
	background-repeat: no-repeat;
}
.bottom .bottom_one_one p {
	height: 60px;
	width: 513px;
	float: left;
}
.bottom .bottom_one_one .a {
	height: 40px;
	width: 120px;
	float: left;
	border: #00a4ff solid;
	font-size: 19px;
	color: #00a4ff;
	text-align: center;
	line-height: 40px;
}
.bottom_one_two table {
	height: 150px;
	width: 150px;
	text-align: left;
	margin-top: 50px;
	float: left;
}
.bottom_one_two .A {
	height: 67px;
}

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值