dw js 改错

来源:百度知道 编辑:UC知道 时间:2024/06/08 14:10:53
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<style>
* {
margin:0px;
padding:0px;
}
body {
font-size:12px;
font-family:Arial, Helvetica, sans-serif;
}
a {
text-decoration:none;
color:#000000;
}
ul {
display:block;
}
li {
display:block;
list-style:none;
}
div {
background:#ccc;
}
#top {
width:98%;
margin:0 auto 3px;
padding:60p

现在是透明的,确实存在这个问题,给li指定下默认背景颜色就可以了
比如:
<li style="background-color: #FFFFFF;"><a href="#">11111</a></li>
<li style="background-color: #FFFFFF;"><a href="#">22222</a></li>
<li style="background-color: #FFFFFF;"><a href="#">33333</a></li>
<li style="background-color: #FFFFFF;"><a href="#">44444</a></li>
(或在用样式表)