Is there a style selector in jQuery?

前端 未结 5 1248
没有蜡笔的小新
没有蜡笔的小新 2020-11-30 10:27

If I want to select every image which it\'s alt is Home for example, I can do something like this:

$(\"img[alt=\'Home\']\")

But how can I s

5条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2020-11-30 10:49

    I had a similar issue. Ended up writing a plugin to select elements based on their computed style.

    https://github.com/MikeCostello/query-declaration

    jQuery
    $(":style({ width: 750px})")

提交回复
热议问题