jQuery: select style attribute?

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

How to select with a specific style attribute?

5条回答
  •  长情又很酷
    2021-01-11 16:34

    Your example works for me, in Chrome at least, once I corrected the typo of the missing " at the end of the line.

    $("div[style='width: 420px; text-align: left; margin-top: 10px; margin-bottom: 10px;']");
    

    See this demo.

提交回复
热议问题