zoukankan      html  css  js  c++  java
  • 树状jquery导航条

        $(function () {
            $(".leftsecoundtitle").css({ "display": "none" });
            $("#id1").toggle(
          function () {
              $("#id1 + .leftsecoundtitle").slideDown("normal");
              $(this).css("background", "#E1E1E1");
              //$(".zsfl-item .zsfl-img").css("background", "#E1E1E1");
          },
          function () {
              $("#id1 + .leftsecoundtitle").slideUp("normal");
              $(this).css("background", "whiteSmoke");
          }

        );
        });

    最终版
            $(function () {
                $(".leftsecoundtitle").css({ "display": "none" });
            });

            function MySlide(id) {
                if ($("#" + id + " + .leftsecoundtitle").css("display") == "none") {
                    $("#" + id + " + .leftsecoundtitle").slideDown("normal");
                    $("#"+id).css("background", "#E1E1E1");
                }
                else if ($("#" + id + " + .leftsecoundtitle").css("display") == "block") {
                    $("#" + id + " + .leftsecoundtitle").slideUp("normal");
                    $("#" + id).css("background", "whiteSmoke");
                }
            }

  • 相关阅读:
    vue element 表格错位问题
    echarts tooltip 按值的降序显示 tip 信息
    前端 玫瑰花小样式
    echarts X轴数据过多批量显示
    微信js sdk的使用初步理解
    对象 的循环嵌套
    移动端拉起电话请求
    js后加版本号
    数组排序于数组去重
    es6数组的方法
  • 原文地址:https://www.cnblogs.com/handsomer/p/3678272.html
Copyright © 2011-2022 走看看