w3c首页简单模仿html+css

<!DOCTYPE html>
<html lang="en">
<head>
	<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>Document</title>
	<style>
		body {
			width: 1903px;
			height: 2040px;
			text-align: center;
			margin: 0;
			padding: 0;
			border: 0;
			font-family: '微软雅黑'
		}
 
		/*a链接样式*/
 
		a {
			text-decoration: none;
		}
 
		/*内容窗口样式*/
 
		div#wrapper {
			width: 1239px;
			height: 2040px;
			/* background-color: skyblue; */
			margin: 0 auto;
			text-align: left;
		}
 
		/*表头样式*/
 
		#header {
			width: 1210px;
			height: 100px;
			/* background-color: #00BB00; */
			margin: 0 auto;
		}
 
		/*LOGO链接*/
 
		#wrapper #header a#logo {
			display: block;
			width: 500px;
			height: 100px;
			overflow: hidden;
			background: transparent url("image/bg.png") -3px -150px no-repeat;
			padding: 0;
			margin: 0;
			float: left;
		}
 
		/*LOGO链接触发*/
 
		#wrapper #header a#logo:hover {
			background: transparent url("image/bg.png") -3px -250px no-repeat;
		}
 
		/*表头右侧样式*/
 
		div#searchui {
			float: right;
			display: block;
			width: 308px;
			height: 100px;
			margin: 0;
			padding: 0;
			background-color: transparent;
		}
 
		/*表头右侧Text表格样式*/
 
		#searchui input.box {
			margin: 0;
			margin-top: 35px;
			width: 258px;
			height: 30px;
			font: 12px Verdana, Arial, Helvetica, sans-serif;
			border: 1px solid #ddd;
			background-color: #fff;
			padding: 0;
 
		}
 
		/*表头右侧button样式*/
 
		#searchui input.button {
			width: 30px;
			height: 30px;
			margin: 0;
			padding: 0;
			background-color: #AE4141;
			color: #fff;
			font: 12px Verdana, Arial, Helvetica, sans-serif;
			border: none
		}
 
		/*导航栏样式*/
 
		div#navfirst {
			width: 1210px;
			height: 48px;
			background-color: #66b3ff;
			margin: 0 0 0 12px;
		}
 
		/*取消项目符号样式*/
 
		div#navfirst ul#menu {
			list-style: none;
 
 
 
 
 
		}
 
		/*绝对定位*/
 
		div#navfirst ul#menu li {
			position: absolute;
			top: 0;
		}
 
		/*导航图*/
 
		div#navfirst ul#menu {
			background: transparent url("image/bg.png") top left no-repeat;
			height: 48px;
			width: 1210px;
			position: relative;
			margin: 0;
			padding: 0;
		}
 
		/*导航栏的li和a变化为块*/
 
		ul#menu li,
		ul#menu li a {
			display: block;
			height: 48px;
		}
 
 
 
		/*各尺寸*/
 
		#h {
			width: 166px;
			left: 0px;
		}
 
		#b {
			width: 191px;
			left: 166px;
		}
 
		#s {
			width: 175px;
			left: 357px;
		}
 
		#p {
			width: 198px;
			left: 532px;
		}
 
		#x {
			width: 113px;
			left: 730px;
		}
 
		#w {
			width: 197px;
			left: 843px;
		}
 
		#r {
			width: 170px;
			left: 1040px;
		}
 
		/*各hover*/
 
		#h a:hover {
			background: transparent url("image/bg.png") 0 -48px no-repeat;
		}
 
		#b a:hover {
			background: transparent url("image/bg.png") -166px -48px no-repeat;
		}
 
		#s a:hover {
			background: transparent url("image/bg.png") -357px -48px no-repeat;
		}
 
		#p a:hover {
			background: transparent url("image/bg.png") -532px -48px no-repeat;
		}
 
		#x a:hover {
			background: transparent url("
  • 3
    点赞
  • 7
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值