简体   繁体   中英

attribute disabled not function with Xhtml

I have a page Xhtml where I have a span inside a td.

When I put the attribute disabled = "disabled" I expect that the cell becomes gray and in fact, on ie9 is so. Unfortunately on chrome, firefox and IE10 is not so.

The cursor is disabled, but the cell does not turn gray. Can you tell me why.

Thanks.

My code:

<tr>
<td background="background.gif" disabled="disabled" id="btnIdentify">
    <span type="text">Identify</span>
</td>

It doesn't work in all the major browsers as disabled is not a valid attribute for the td tag! You have to find another solution to achieve what you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM