如何將此css類應用於除輸入類型複選框之外的所有元素?這裏是我有什麼,但它不工作:css選擇除輸入類型複選框以外的所有元素
.dim:not(input[type="checkbox"]) {
-webkit-opacity: 0.25;
-moz-opacity: 0.25;
filter:alpha(opacity=25);
opacity: 0.25;
}
和HTML我將這種上:在類昏暗
.dim input{...........}
所有輸入
<tr class="dim">
<td>
<input type="checkbox">
</td>
<td>
<input type="text" class="input-large enforce-label" name="labels[]" maxlength="30">
</td>
<td>
<input type="text" class="input-large" name="addresses[]" maxlength="255">
</td>
<td>
<input type="text" class="input-small" name="ssh_usernames[]" maxlength="100">
</td>
<td>
<input type="text" class="input-small enforce-ssh-port" name="ssh_ports[]" maxlength="5">
</td>
</tr>
*所有*的元素?包括'td'和其他'input'元素?這將導致不透明度疊加疊加,導致輸入元素的不透明度爲0.0625。 – BoltClock