zoukankan      html  css  js  c++  java
  • 实用帮助中心切换效果以及Css判断

    <script src="Js/jquery-1.8.3.min.js" type="text/javascript"></script>

        <script type="text/javascript" src="Js/Common.js"></script>

        <script type="text/javascript">
            $(function() {
                $(".faq_menu dt").click(function() {
                    var index = $(".faq_menu dt").index(this);
                    if ($(".faq_menu dl dt").eq(index).siblings("dd").css("display") == "block") {
                        $(".faq_menu dl dt").eq(index).find("span").html("&#xe674;");
                    } else {
                        $(".faq_menu dl dt").eq(index).find("span").html("&#xe673;");
                    }
                    $(".faq_menu dl dt").eq(index).siblings("dd").toggle('slow');
                });
            });
            $(function() {
                $(".faq_menu dd").click(function() {
                    var index = $(".faq_menu dd").index(this);
                    $(".faq_menu dd").eq(index).find("a").addClass("moa");
                    $(this).siblings().find("a").removeClass("moa");
                });
            })
        </script>  

     <div class="faq_menu" style="cursor: pointer">
                <dl>
                    <dt><span class="iconfont">&#xe674;</span>基础使用</dt>
                    <dd>
                        <a>企业介绍类</a></dd>
                    <dd>
                        <a>数据安全类</a></dd>
                    <dd>
                        <a>用户注册类</a></dd>
                    <dd>
                        <a>系统管理类</a></dd></dl>
                <dl>
                    <dt><span class="iconfont">&#xe674;</span>终端操作</dt>
                    <dd style="display: none">
                        <a>企业介绍类</a></dd>
                    <dd style="display: none">
                        <a>数据安全类</a></dd>
                    <dd style="display: none">
                        <a>用户注册类</a></dd>
                    <dd style="display: none">
                        <a>系统管理类</a></dd>
                    <dd style="display: none">
                        <a>系统管理类</a></dd>
                    <dd style="display: none">
                        <a>系统管理类</a></dd></dl>
                <dl>
                    <dt><span class="iconfont">&#xe674;</span>主线应用</dt>
                    <dd style="display: none">
                        <a>企业介绍类</a></dd>
                    <dd style="display: none">
                        <a>数据安全类</a></dd>
                    <dd style="display: none">
                        <a>用户注册类</a></dd>
                    <dd style="display: none">
                        <a>系统管理类</a></dd></dl>
                <dl>
                    <dt><span class="iconfont">&#xe674;</span>工作协同</dt>
                    <dd style="display: none">
                        <a>企业介绍类</a></dd>
                    <dd style="display: none">
                        <a>数据安全类</a></dd>
                    <dd style="display: none">
                        <a>用户注册类</a></dd>
                    <dd style="display: none">
                        <a>系统管理类</a></dd></dl>
                <dl>
                    <dt><span class="iconfont">&#xe674;</span>内部管理</dt>
                    <dd style="display: none">
                        <a>企业介绍类</a></dd>
                    <dd style="display: none">
                        <a>数据安全类</a></dd>
                    <dd style="display: none">
                        <a>用户注册类</a></dd>
                    <dd style="display: none">
                        <a>系统管理类</a></dd></dl>
                <dl>
                    <dt><span class="iconfont">&#xe674;</span>时间管理</dt>
                    <dd style="display: none">
                        <a>企业介绍类</a></dd>
                    <dd style="display: none">
                        <a>数据安全类</a></dd>
                    <dd style="display: none">
                        <a>用户注册类</a></dd>
                    <dd style="display: none">
                        <a>系统管理类</a></dd></dl>
                <dl>
                    <dt><span class="iconfont">&#xe674;</span>沟通交流</dt>
                    <dd style="display: none">
                        <a>企业介绍类</a></dd>
                    <dd style="display: none">
                        <a>数据安全类</a></dd>
                    <dd style="display: none">
                        <a>用户注册类</a></dd>
                    <dd style="display: none">
                        <a>系统管理类</a></dd></dl>
                <dl>
                    <dt><span class="iconfont">&#xe674;</span>项目管理</dt>
                    <dd style="display: none">
                        <a>企业介绍类</a></dd>
                    <dd style="display: none">
                        <a>数据安全类</a></dd>
                    <dd style="display: none">
                        <a>用户注册类</a></dd>
                    <dd style="display: none">
                        <a>系统管理类</a></dd></dl>
            </div>

  • 相关阅读:
    UIWindow与UIView
    UIView与CALayer 区别
    setter getter 方法
    KVC、KVO 理解
    c语言实现单链表
    浅谈C的应用与常见error
    POJ 3683 Priest John's Busiest Day(2-SAT+方案输出)
    Google Code Jam 2008 Round 1A C Numbers(矩阵快速幂+化简方程,好题)
    POJ 3686 The Windy's(思维+费用流好题)
    POJ 2686 Traveling by Stagecoach(状压二维SPFA)
  • 原文地址:https://www.cnblogs.com/LD1018/p/8032074.html
Copyright © 2011-2022 走看看