学成在线首页网站

 

 

 

<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<meta http-equiv="X-UA-Compatible" content="ie=edge">
		<title>学车在线首页</title>
		<style>
			* {
				margin: 0;
				padding: 0;
			}
			
			.w {
				width: 1200px;
				margin: auto;
			}
			
			body {
				background-color: #f3f5f7;
			}
			
			li {
				list-style: none;
			}
			
			a {
				text-decoration: none;
			}
			
			.clearfix:before,
			.clearfix:after {
				content: "";
				display: table;
			}
			
			.clearfix:after {
				clear: both;
			}
			
			.clearfix {
				*zoom: 1;
			}
			
			.header {
				height: 42px;
				background-color: paleturquoise;
				/* 注意此地方会层叠 w 里面的margin */
				margin: 30px auto;
			}
			
			.logo {
				float: left;
				width: 198px;
				height: 42px;
			}
			
			.nav {
				float: left;
				margin-left: 60px;
			}
			
			.nav ul li {
				float: left;
				margin: 0 15px;
			}
			
			.nav ul li a {
				display: block;
				height: 42px;
				padding: 0 10px;
				line-height: 42px;
				font-size: 21px;
				font-family: "楷体";
				color: #050505;
			}
			
			.nav ul li a:hover {
				border-bottom: 2px solid #00a4ff;
				color: #00a4ff;
			}
			/* search搜索模块 */
			
			.search {
				float: left;
				width: 412px;
				height: 42px;
				margin-left: 70px;
			}
			
			.search input {
				float: left;
				width: 345px;
				height: 40px;
				border: 1px solid #00a4ff;
				border-top-left-radius: 30px;
				border-bottom-left-radius: 30px;
				border-right: 0;
				color: #bfbfbf;
				font-size: 14px;
				padding-left: 15px;
			}
			
			.search button {
				float: left;
				width: 50px;
				height: 42px;
				/* 按钮button默认有个边框需要我们手动去掉 */
				border: 0;
				background:cyan;
			}
			
			.user {
				float: right;
				line-height: 42px;
				margin-right: 30px;
				font-size: 14px;
				color: #666;
			}
			/* banner区域 */
			
			.banner {
				height: 421px;
				background: url(img/beijing3.jpg) no-repeat top center;
				/*background-color: #1c036c;蓝色背景*/
			}
			
			.banner .w {
				height: 421px;
				background: url(img/logo.png) no-repeat top center;
			}
			
			.subnav {
				float: left;
				width: 190px;
				height: 421px;
				background: rgba(0, 0, 0, 0.3);
			}
			
			.subnav ul li {
				height: 45px;
				line-height: 45px;
				padding: 0 20px;
			}
			
			.subnav ul li a {
				font-size: 19px;
				font-weight: bold;
				font-family: "楷体";
				color: palevioletred;
			}
			
			.subnav ul li a span {
				float: right;
			}
			
			.subnav ul li a:hover {
				color: #00a4ff;
			}
			
			.course {
				float: right;
				width: 230px;
				height: 300px;
				background-color: #fff;
				/* 浮动的盒子不会有外边距合并的问题 */
				margin-top: 50px;
			}
			
			.course h2 {
				height: 48px;
				background-color: #9bceea;
				text-align: center;
				line-height: 48px;
				font-size: 18px;
				color: #fff;
			}
			
			.bd {
				padding: 0 20px;
			}
			
			.bd ul li {
				paddin
  • 3
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

Try Hard️.

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

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

余额充值