【问题标题】:jQuery Toggle different result in IE11jQuery 在 IE11 中切换不同的结果
【发布时间】:2014-07-08 16:49:25
【问题描述】:

我正在使用以下代码来切换下拉菜单。 这个 jQuery 在除 IE11 之外的所有浏览器中都能正常工作。知道为什么吗?

使用最新的 jQuery 版本。

$j('#clicker').click(function() {
    $j('#clicker').not(this).siblings('ul').slideUp("slow");

    $j(this).siblings('ul').slideToggle("slow");
});


$j('#clicker').blur(function() {
    $j('#dropdown-inside').hide('slow', function() {
    });
});

【问题讨论】:

    标签: jquery mobile menu toggle internet-explorer-11


    【解决方案1】:

    尝试将您的 jquery 替换为 1.11 并假设您的 div id 是 dropdown-inside 添加一个高度以像素为单位的样式,例如:

    <div id="dropdown-inside" style="height:100px">
    

    【讨论】:

      猜你喜欢
      • 2023-03-09
      • 1970-01-01
      • 1970-01-01
      • 2019-11-12
      • 2017-12-02
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多