如何在IE6.0下实现纯css二级导航菜单,以下代码无法显示二级菜单,请高手帮忙修改,不用js。
<!DOCTYPEhtmlPUBLIC"-//W3C//DTDXHTML1.0Transitional//EN""http://www.w3.org/TR/xhtml1/...
<!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 type="text/css">
#menu { width: 100px; border: 1px solid #ccc; }
#menu ul { margin: 0px; padding: 0px; list-style: }
#menu ul li { line-height: 26px; background: #eee; padding: 0px 8px; height: 26px; border-bottom: 1px solid #00ff00;position:relative;}
#menu ul li ul { display: none; border: 1px solid #ccc; position: absolute; left: 100px; top: 0px;width:100px; color:#009}
a { color: #f00; text-decoration: none; }
a:hover { color: #009; text-decoration: none; }
body { font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 1.5px; }
body, ul, li, h1, h2, h3, h4, h5, h6, p, form, dl, dt, dd { margin: 0px; padding: 0px; font-size: 12px; font-weight: normal; font-weight:bold; }
ul { list-style: none; }
img { border-style: none; }
#menu ul li:hover ul{display:block;}
</style>
</head>
<body>
<div id="menu">
<ul>
<li><a href="#">首页</a></li>
<li><a href="#">网页版式布局</a></li>
<li><a href="#">div+css教程</a>
<ul>
<li><a href="#">新手入门</a></li>
<li><a href="#">视频教程</a></li>
<li><a href="#">图文教程</a></li>
</ul>
</li>
<li><a href="#">div+css实例</a></li>
<li><a href="#">常用代码</a></li>
<li><a href="#">站长杂谈</a></li>
<li><a href="#">技术文档</a></li>
<li><a href="#">资源下载</a></li>
<li><a href="#">图片素材</a></li>
</ul>
</div>
</body>
</html> 展开
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>纵向导航列表</title>
<style type="text/css">
#menu { width: 100px; border: 1px solid #ccc; }
#menu ul { margin: 0px; padding: 0px; list-style: }
#menu ul li { line-height: 26px; background: #eee; padding: 0px 8px; height: 26px; border-bottom: 1px solid #00ff00;position:relative;}
#menu ul li ul { display: none; border: 1px solid #ccc; position: absolute; left: 100px; top: 0px;width:100px; color:#009}
a { color: #f00; text-decoration: none; }
a:hover { color: #009; text-decoration: none; }
body { font-family: Verdana, Geneva, sans-serif; font-size: 12px; line-height: 1.5px; }
body, ul, li, h1, h2, h3, h4, h5, h6, p, form, dl, dt, dd { margin: 0px; padding: 0px; font-size: 12px; font-weight: normal; font-weight:bold; }
ul { list-style: none; }
img { border-style: none; }
#menu ul li:hover ul{display:block;}
</style>
</head>
<body>
<div id="menu">
<ul>
<li><a href="#">首页</a></li>
<li><a href="#">网页版式布局</a></li>
<li><a href="#">div+css教程</a>
<ul>
<li><a href="#">新手入门</a></li>
<li><a href="#">视频教程</a></li>
<li><a href="#">图文教程</a></li>
</ul>
</li>
<li><a href="#">div+css实例</a></li>
<li><a href="#">常用代码</a></li>
<li><a href="#">站长杂谈</a></li>
<li><a href="#">技术文档</a></li>
<li><a href="#">资源下载</a></li>
<li><a href="#">图片素材</a></li>
</ul>
</div>
</body>
</html> 展开
3个回答
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询