@charset "utf-8";/* CSS Document */*{	margin:0px;\	padding:0px;}body{	background-image: url(../images/bg.jpg);	background-repeat:repeat-x;	height:1000px;	}body>div{	width:900px;}#wrap{	margin:0 auto;}#header{	height:80px;	background:#fff;}#hl{	width:550px;	height:80px;	background:#fff;	background-image: url(../images/logo.jpg);	background-repeat: no-repeat;	float:left;	}#hr{	float:right;	font-size:8px;}#nav{	background-image: url(../images/dh.jpg);	height:30px;	border:solid #fff 5px;	border-width: 0px 0px 5px 0px;}#logo{	height:300px;	background-image: url(../images/1.jpg);}#main{	height:400px;	margin-top: 5px;}#ml{	height:400px;	width:250px;	background-image: url(../images/left.jpg);	margin-right: 5px;	float:left;}#mr{	height:25px;	width:645px;	float:right;	color:blue;}#gsjj{	background:blue;	font-family:"Microsoft YaHei";	font-size: 10px;	color:#fff;	font-weight: normal;}#footer{	margin-top: 10px;	border:solid 1px blue;	border-width: 1px 0px 0px 0px;	text-align:center;}ul li{	width:100px;	height:30px;	float:left;	color:#fff;	list-style-type:none;	padding-top: 5px;	padding-left: 5px;}
登录后复制
登录后复制


回复讨论(解决方案)

CSS element>element 选择器

CSS element>element 选择器



margin:0px;\

这个的最后的符号怎么理解?


CSS element>element 选择器



margin:0px;\

这个的最后的符号怎么理解?


没这种写法吧
http://baike.baidu.com/view/1119452.htm?fr=aladdin



CSS element>element 选择器



margin:0px;\

这个的最后的符号怎么理解?


没这种写法吧
http://baike.baidu.com/view/1119452.htm?fr=aladdin


登录后复制


@charset "utf-8";/* CSS Document */*{	margin:0px;\	padding:0px;}body{	background-image: url(../images/bg.jpg);	background-repeat:repeat-x;	height:1000px;	}body>div{	width:900px;}#wrap{	margin:0 auto;}#header{	height:80px;	background:#fff;}#hl{	width:550px;	height:80px;	background:#fff;	background-image: url(../images/logo.jpg);	background-repeat: no-repeat;	float:left;	}#hr{	float:right;	font-size:8px;}#nav{	background-image: url(../images/dh.jpg);	height:30px;	border:solid #fff 5px;	border-width: 0px 0px 5px 0px;}#logo{	height:300px;	background-image: url(../images/1.jpg);}#main{	height:400px;	margin-top: 5px;}#ml{	height:400px;	width:250px;	background-image: url(../images/left.jpg);	margin-right: 5px;	float:left;}#mr{	height:25px;	width:645px;	float:right;	color:blue;}#gsjj{	background:blue;	font-family:"Microsoft YaHei";	font-size: 10px;	color:#fff;	font-weight: normal;}#footer{	margin-top: 10px;	border:solid 1px blue;	border-width: 1px 0px 0px 0px;	text-align:center;}ul li{	width:100px;	height:30px;	float:left;	color:#fff;	list-style-type:none;	padding-top: 5px;	padding-left: 5px;}
登录后复制
登录后复制


去掉那个符号后,会产生不同的效果。

加了那个后padding无效了

09-18 17:38