- 爱易网页
-
HTML教程
- 为什么小弟我的list-style-type起不了作用呢
日期:2014-05-17 浏览次数:20647 次
为什么我的list-style-type起不了作用呢?
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN ">
<html lang= "en ">
<head>
<style type= "text/css ">
<!--
* {margin=0px;padding:0px;}
body { width:800px;
margin:0 auto;
font:12px sans-serif;
border:1px solid #5F9EA0;
}
#header {width:800px;
border:0px solid blue;
text-align:center;
margin:0px;padding:0px;
}
#globalnav {
list-style-type:none; /*这里我定义了没有符号呢 */
height:25px;
width:780px;
color:#000;
padding:10px;
background-color:#B0C4DE;
}
#globalnav li {float:left;
margin:1px;
}
#globalnav li a{
background:yellow;
}
#globalnav li a:hover{
color:#000;
background-color:#fff;
}
#content {
height:300px;
}
#content h2 {
font-size: 16px;
padding: 1px 2px 0 5px;
}
#content p { text-indent: 2em;}
#footer {
height:50px;
font:14px bold;
background-color:#B0C4DE;
text-align:center;
line-height:1em;
overflow:hidden;
}
-->
</style>
<title> I must be successfuy! </title>
</head>
<body>
<div id= "header "> <img src= "head.jpg " alt= "logo "> </div>
<div id= "globalnav "> <ul> <li> <a href= "# "> index </a> </li> <li> movie </li> </ul> </div>
/*这里还是不起作用呢 */
<div id= "content "> <h2> ccontent </h2> <p> you 're far to kind </p> </div>
<div id= "footer "> <p> love | sad | died | grow | hate </div>