@charset"utf-8";
*{
margin:0px;
padding:0px;
font-size:14px;
}
body{
background-color:#f5f5f5;
}
.header{
width:100%;
height:27px;
background:url(../images/top_bg.jpg)repeat-x;
}
.header_right{
width:1000px;
height:27px;
margin:0 auto;
}
.header_right li{
list-style-image:url(../images/li_bg.gif);
float:right;
width:78px;
line-height:27px;
font-size:12px;
}
.header_right a:link,.header_right a:visited{
text-decoration:none;
color:#8e8e8e;
}
.header_right a:hover,.header_right a:active{
color:#900;
text-decoration:underline;
}
.warp{
width:1000px;
margin:0 auto;
}
.logo{
height:80px;
background-color:#fff;
}
.logo_left{
float:left;
}
.logo_right{
float:right;
}
我也是这个问题,请问怎么处理
html代码里边都没有设置类名吗?类名都没有,上边的css还有什么用呢?
<!doctype html>
<html>
<head>
<meta charset="UTF-8">
<title>慕课网</title>
<link href="css/index.css" rel="stylesheet" type="css/html"/>
</head>
<body>
<div>
<div>
<ul>
<li><a href="#">联系我们</a></li>
<li><a href="#">加入收藏</a></li>
<li><a href="#">设为首页</a></li>
</ul>
</div>
</div>
<div>
<div>
<div>
<img src="images/logo.jpg" alt="慕课网"/>
</div>
<div>
<img src="images/tel.jpg" alt="tel"/>24小时服务热线:<span>165-965-5685</span>
</div>
</div><!-- logo结束 -->
<div>
<
<div>
</div><!-- warp结束 -->
</body>
</html>
把HTML结构也贴出来