开发者

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 }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜