zoukankan      html  css  js  c++  java
  • ul li 美丽菜单

         

     <div id="dh_title" style=" 960px; height: 40px; background: url(dh.gif); text-align: center;">
                <ul class="db_c">
                    <li class="showdh">Menu</li>
                    <li>Menu</li>
                    <li>Menu</li>
                    <li>Menu</li>
                    <li>Menu</li>
                    <li>Menu</li>
                    <li>Menu</li>
                    <li>Menu</li>
                </ul>
            </div>

     <style type="text/css">
            .db_c
            {
                list-style-type: none;
                90%;
                margin-left: 5%;
            }
            .db_c li
            {
                list-style-type: none;
                text-align: center;
                float: left;
                85px;
                height: 25px;
                margin: 6px;
                line-height: 24px;
                border: 0px red solid;
                margin-left: 10px;
                color: White;
                font-weight: bold;
                font-size: small;
            }
            .db_c li:hover
            {
                color: White;
                font-weight: bold;
                font-size: small;
                cursor: pointer;
                background: url(nav_over.gif);
            }
            .showdh
            {
                background: url(nav_over.gif);
            }
        </style>

        <script type="text/javascript">
            $(function() {
                $("ul li", "#dh_title").click(function() {
                    $("ul li", "#dh_title").each(function() {
                        $(this).removeClass("showdh");
                    });
                    $(this).addClass("showdh");
                });
            });
        </script>

  • 相关阅读:
    一步一步精通 Windows Sockets 网络编程(2)
    一步一步精通 Windows Sockets 网络编程(3)
    一步一步精通 Windows Sockets 网络编程(连载)
    Sql Server 创建远程连接
    js 去字符串两边空格
    C# .Net RSA加解密以及SHA1WithRsa签名生成及验签
    win10远程桌面怎么保存密码?win10让远程桌面记住密码的方法
    mysql skipgranttables 无法启动
    C# .Net WebClient http及https请求
    iis8 是没有读系统的短日期格式
  • 原文地址:https://www.cnblogs.com/ajun/p/2371709.html
Copyright © 2011-2022 走看看