我想选择所有不遵循H3或P的P:
<img>
<p> this is selected</p>
<p> this is not</p>
<p> this is not</p>
<span>
<p> this is selected</p>
<h3>
<p> this is not</p>
Run Code Online (Sandbox Code Playgroud)
我试过了
p + :not(h3, p) and :not(h3, p) + p
Run Code Online (Sandbox Code Playgroud)
但他们不起作用
解决办法是什么?请帮忙
| 归档时间: |
|
| 查看次数: |
1118 次 |
| 最近记录: |