标题:css下拉菜单
取消只看楼主
lenvens
Rank: 2
等 级:论坛游民
威 望:1
帖 子:17
专家分:34
注 册:2009-1-12
结帖率:100%
 问题点数:0 回复次数:0 
css下拉菜单
在firefox下通过
程序代码:
<html>
    <head>
    <title>tt</title>
    <style>
#menulist li a:link ,#menulist li a:visited
{
    width:100px;
    height:20px;
    color:#3b5998;
    line-height:20px;
    text-decoration:none;
}
#menulist li
{
    width:100px;
    list-style:none;
    background:#ffff77;
    color:#3b5998;
    text-align:center;
    border:1px solid red;
}
#menulist li:hover a
{
    width:100px;
    color:red;
}
#menulist li ul
{
    display:none;
}
#menulist li:hover ul {
    display:block;
    position:absolute;
    top:30px;
    width:100px;
    background:blue;
    padding:0px;
    margin-left:-1;
}
#menulist li:hover ul li
{
    display:block;
    background:red;
    list-style:none;
    padding-left:0px;
}
#menulist li:hover ul li a
{
    height:20px;
    display:block;
    background:yellowgreen;
    list-style:none;
    color:red;
}
#menulist li:hover ul li a:hover
{
    height:20px;
    top:50px;
    background:#000;
    list-style:none;
}
        
    </style>
    </head>
    <body>
    <ul id="menulist">
        <li>
        <a href="#">menu</a>
        <ul>
        <li><a href=#>1</a></li>
        <li><a href=#>2</a></li>
        </ul>
        </li>
    </ul>
    </body>
</html>
搜索更多相关主题的帖子: css 
2009-08-18 14:55



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-283113-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.403041 second(s), 8 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved