的H1之後,是表我想針對一個表,只有當它涉及含有「編輯共享區」Javascript來針對包含特定文本
下面是HTML呈現我想表中的H1後目標:
<h1>Editing Shared Regions</h1>
<ul class="smartbar">
<li class="selected"><a href="/core/apps/content/page/?id=-1">Regions</a></li>
</ul>
<table>
<thead>
<tr>
<th>Region</th>
<th>Type</th>
<th>Items</th>
<th class="action"></th>
<th class="action"></th>
</tr>
</thead>
<tbody>
這是真棒,非常感謝!所以〜選擇器意味着'兄弟姐妹'。輝煌。 – Sly
@Sly請參見[通用兄弟選擇器](https://developer.mozilla.org/en-US/docs/Web/CSS/General_sibling_selectors)_「〜組合器分離兩個選擇器,並且僅在第二個元素先於由第一個,和兩個共同的父母。「_ – guest271314