English 中文(简体)
<option> 已禁用属性在前版本8 IE 中不支持 。
原标题:The <option> disabled attribute is not supported in IE, prior version 8. Any workaround?

禁用属性在 HTML ; option> 禁用属性的前第八版 IE 中不支持该属性 。 < a href="http://www.w3schools.com/tags/att_option_faident.asp" rel=“nofollow” >http://www.w3schools.com/tags/att_option_faid.asp

我们有什么选择来定制外观, 使字段只读取?

Warning! Read the question twice, as we don t ask about <input disabled> we ask about <option disabled>

最佳回答

“ 禁用属性在 HTML 已禁用属性的前版本 8 IE 中不支持 。

这是完全不真实的。

即使是 IE7 也暗淡了 元素, 无法选择它( IE6 ) 。

问题回答

我唯一的建议( 完全没有测试过) 是在 < code@ lt; option> 标签上添加事件处理器, 并有 < code> return fill; 标签, 以防止它被选中 。

或者,您可以链接到 select onchange 处理器, 当选中的值不应该被点击时返回到旧值。 支持 freedom 的浏览器不会受到影响, 因此可能对您有效 。





相关问题
CSS working only in Firefox

I am trying to create a search text-field like on the Apple website. The HTML looks like this: <div class="frm-search"> <div> <input class="btn" type="image" src="http://www....

image changed but appears the same in browser

I m writing a php script to crop an image. The script overwrites the old image with the new one, but when I reload the page (which is supposed to pickup the new image) I still see the old one. ...

Firefox background image horizontal centering oddity

I am building some basic HTML code for a CMS. One of the page-related options in the CMS is "background image" and "stretch page width / height to background image width / height." so that with large ...

Separator line in ASP.NET

I d like to add a simple separator line in an aspx web form. Does anyone know how? It sounds easy enough, but still I can t manage to find how to do it.. 10x!