我需要选择 div#request 的内容,而不是 .requestHeader 的内容。我应该使用哪个选择器?
<div id="request">
<h3 class="requestHeader">
Request Details
</h3>
Dear Human, In this life you're allowed to make only one request. Keep in mind! Even that request will never be resolved!!
<br/>
Request for Money
75.00
USD
per day
</div>
我试过了div#request:not(.requestHeader)
。它不起作用,并给出与div#request
. 我错过了什么?
所需输出:(仅用于打印)
Dear Human, In this life you're allowed to make only one request. Keep in mind! Even that request will never be resolved!!
<br/>
Request for Money
75.00
USD
per day
我需要在没有链接的情况下执行此操作。即$('#request'):not('requestHeader')
不能做。我只是有自由去做这件事$('SELECTOR-HERE')