龙盟编程博客 | 无障碍搜索 | 云盘搜索神器
快速搜索
主页 > web编程 > div+css/html >

Javascript +CSS横向三级导航菜单

时间:2012-12-29 08:41来源:未知 作者:admin 点击:
分享到:
!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
<!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> &#309;</title>
<style>
body {
    margin: 7px;
    font:12px Verdana, Arial, Helvetica, sans-serif;
}
* {
    list-style-type: none;
    margin: 0px;
    padding: 0px;
    border: thin none;
}
#nav {
    position: absolute;
    font-size: 9px;
    opacity: 0.8;
}
#nav a {
    display: block;
    width: 100px;
    height: 15px;
    padding: 3px 5px 12px;
    background: #666;
    color: #fff;
    text-decoration: none;
}
#nav a:hover {
    background: #333;
}
#nav li {
    width: 120px;
    height:30px;
    overflow:hidden;
    background: #ccc;
    padding-bottom: 3px;
}
#nav ul {
    position: absolute;
    margin-left: 110px;
    margin-top: -30px;
}
html>body #nav ul {
    margin-left: 119px;
    margin-top: -39px;
}
#nav ul {
    display: none;
}
#nav li.show ul {
    display: block;
}
#nav li.show li ul {
    display: none;
第 1 2 3 4 5 6 7 8 页
精彩图集

赞助商链接