div css UL li 设置
#body{
background:bule;
text-align:center;
}
#nav{
background:red;
width:600px;
height:20px;
}
#nav ul{margin:0px auto;
background:gray;
width:600px;
height:20px;
list-style:none;
}
#nav ul li{
width:100px;
height:20px;
font:"宋体", "新宋体", "Adobe 楷体 Std R";
float:left;
textalign:center;
}
//-->
home
home
home
home
home
home
问题:1.为什么背景色设置没有起作用??
2.为什么不居中显示 textalign:center 和margin:0 auto都改变不了。
3.为什么#nav #nav ul不重叠居中显示 会超出范围不对齐。
请指点哈 谢谢。。