【问题标题】:Select all elements with position 'fixed' using jQuery [duplicate]使用jQuery选择位置“固定”的所有元素[重复]
【发布时间】:2017-04-22 15:45:40
【问题描述】:

如何使用 jQuery 选择位置“固定”的 html 页面中的所有元素

【问题讨论】:

  • 您尝试过的解决方案有什么问题?

标签: javascript jquery


【解决方案1】:
var find = $('*').filter(function () { 
    return $(this).css('position') == 'fixed';
});

https://stackoverflow.com/a/35055063/7869582

【讨论】:

  • 不要那样做。当它重复时,投票关闭它。不要回答
  • 特别是不要复制其他答案
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2017-12-11
  • 2010-11-16
  • 2012-10-20
  • 1970-01-01
  • 2013-08-11
相关资源
最近更新 更多