Selecting all images in a <td> tag and disabling them
My HTML looks something like this:
<table class="disabled">
<tr>
<td>
<input blah blah>
</td>
<td>
<img id="reallyLongAS开发者_运维百科P.NetID" etcetc/>
</td>
</tr>
</table>
In all with a class indicated as "disabled", I want to set visibility: hidden on the <img>
. I can disable using the crazy id ASP.Net gives, but would like to do a general statement that affects every control in the <table>
Thanks for the help in advance,
If I understand you correctly, you'll just want to select all images within tables having the class specified:
table.disabled img { visibility:hidden }
精彩评论