前端项目实战(CSS)部分

在这里插入图片描述

/* 公共的样式,清除默认样式 */
/*公共样式*/
body{
	font-family: "MicrosoftYaHei";
}
body,h1,h2,h3,h4,h5,h6,p,ul,ol,dl,dd,table,tr,td{
	margin: 0;
	padding: 0;
}
ul,ol{
	list-style: none;
}



a{
	text-decoration: none;
	color: inherit;
}
h2{
	font-size: 36px;
	font-weight: 400;
	color: rgba(51, 51, 51, 1);
}
.fl{
	float: left;
}
.fr{
	float: right;
}
.clear:after{
	display: block;
	content: "";
	clear: both;
}

.content{
	margin: 0 auto;
	width: 1400px;
	overflow: hidden;
}
/* 顶部板块相关样式 */
#body{
	width: 100%;
	z-index: -1;
	position: absolute;
}
#top .content .left{
	float: left;
}
#top .content .left li{
	float: left;
	margin-right: 40px;
	font-size: 13px;
	color: #ffffff;
	height: 50px;
	line-height: 50px;
	opacity: .9;
}
#top .content .right{
	float: right;
}
#top .content .right li{
	float: left;
	height: 50px;
	line-height: 50px;
}
#top .content .right #li1{
	font-size: 13px;
	color: #FFFFFF;
	margin-right: 10px;
}
#top .content .right #li2{
	background: url(../img/E0ry4Jqia3q5ZJJj8PbBVWFBubM.png);
	background-size: 241px 224px;
	background-color: #FFFFFF;
	border-radius: 50%;
	width: 32px;
	height: 32px;
	background-position: -11px -149px;
	margin-top: 9px;
	margin-right: 30px;
}
#top .content .right #li3{
	background: url(../img/E0ry4Jqia3q5ZJJj8PbBVWFBubM.png);
	background-size: 241px 224px;
	width: 32px;
	height: 32px;
	background-position: -170px -149px;
	margin-top: 15px;
}
#input .content{
	margin-top: 140px;
	position: relative;
}
#input .content #span1{
	display: inline-block;
	width: 47px;
	height: 47px;
	background: url(../img/E0ry4Jqia3q5ZJJj8PbBVWFBubM.png);
	background-size: 482px 448px;
	background-position: -38px -372px;
	position: absolute;
}
#input .content #span2{
	font-size: 18px;
	margin-left: 50px;
	color: #FFFFFF;
}
#input .content #span3{
	font-size: 18px;
	color: #FFFFFF;
}
#input .content #key{
	width: 550px;
	height: 47px;
	border: 1px solid gray;
	border-radius: 10px 0px 0px 10px;
	outline: none;
	font-size: 18px;
	text-indent: 1em;
	border-right: none;
}
#input .content #select{
	width: 51px;
	height: 51px;
	border: 1px solid gray;
	border-radius: 0 10px 10px 0;
	outline: none;
	position: absolute;
	border-left: none;
	background: url(../img/E0ry4Jqia3q5ZJJj8PbBVWFBubM.png);
	background-size: 241px 224px;
	background-position: -157px 171px;
	background-color: #FFFFFF;
}



/* 底部按钮板块相关样式 */
#footer{
	width: 100%;
	height: 40px;
	position: fixed;
	bottom: 70px;
	text-align: center;
	line-height: 40px;
	color: #FFFFFF;
	font-size: 24px;
}
#footer #bug{
	width: 40px;
	height: 40px;
	float: right;
	margin-right: 70px;
	background: url(../img/asd.png);
	background-position: 0px -525px;
	cursor: pointer;
}
#footer #next{
	width: 40px;
	height: 40px;
	background: url(../img/asd.png);
	background-position: 0px -609px;
	float: right;
	margin-right: 30px;
	cursor: pointer;
}
#footer #last{
	width: 40px;
	height: 40px;
	background: url(../img/asd.png);
	background-position: 0px -567px;
	float: right;
	margin-right: 30px;
	cursor: pointer;
}






/* 底部板块相关样式 */
#bottom{
	width: 100%;
	height: 36px;
	background-color: #333333;
	color: #666666;
	font-size: 13px;
	line-height: 36px;
	position: fixed;
	bottom: 0;
}
#bottom #left{
	float: left;
	margin-left: 20px;
}
#bottom #left li{
	float: left;
	margin-left: 20px;
}
#bottom #right{
	float: right;
	margin-right: 40px;
}

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值