• 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>

  • 相关阅读:
    深入JAVA注解之属性注解
    深入JAVA注解之方法注解
    C# 启动外部程序的几种方法
    在.NET中实现彩色光标/动画光标和自定义光标[转]
    C#实现汉诺塔问题
    ExecuteNonQuery()返回值注意点
    在VS2012下不安装VS2010编译VS2010的工程
    Windows 窗体的.Net 框架绘图技术
    使用DataSet Datatable 更新数据库的三种方式
    C#.net 之货币转换
  • 原文地址:https://www.cnblogs.com/ajun/p/2371709.html
Copyright © 2020-2023  润新知