【问题标题】:Why isn't IE8 finding these attributes?为什么 IE8 找不到这些属性?
【发布时间】:2013-03-25 23:37:30
【问题描述】:

我在 IE 9 和其他所有内容中都收到警报和预期行为,但在 IE 8 中没有这样的运气。这可能是什么原因?

container.find('[style*="left:"],[data-item-left],[style*="top:"],[data-item-top]').each(function(index){
            // do stuff
    });

Example Fiddle

【问题讨论】:

    标签: jquery-selectors internet-explorer-8 jquery-attributes


    【解决方案1】:

    我的解决方案是使用a more generic selector

    【讨论】:

      猜你喜欢
      • 2017-12-05
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多