jQuery: select style attribute?

前端 未结 5 869
一生所求
一生所求 2021-01-11 16:04

How to select with a specific style attribute?

5条回答
  •  日久生厌
    2021-01-11 16:24

    (This does not answer the question. However, if the person who wrote the HTML page had used classes instead of the style attribute, then the OP would not have this problem.)

    .foo { width: 420px; text-align: left; margin-top: 10px; margin-bottom: 10px; }
    
    
    $("div.foo")

提交回复
热议问题