且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

从代码隐藏中灰显按钮在IE中不起作用

更新时间:2023-02-11 20:38:47

透明度 CSS样式已知Internet Explorer的问题。

The opacity CSS style has known issues with Internet Explorer.

尝试将它添加到您的CSS样式表,而不是添加一个内联样式,添加一个类:

Try adding this to your CSS stylesheet, and instead of adding an inline style, add a class:

.opaque {
    -ms-filter:"progid:DXImageTransform.Microsoft.Alpha(Opacity=50)"; 
    filter: alpha(opacity=50);                  
}

订单必须与上述完全相同。

Order has to be exactly like above.

此技术在此显示/使用: http://www.quirksmode .org / css / opacity.html

This technique is shown/used here: http://www.quirksmode.org/css/opacity.html

此外,我听说使用jQuery来应用不透明度是理想的,因为jQuery处理所有跨浏览器问题。这是一个选项吗?

Also, i have heard using jQuery to apply the opacity is ideal, because jQuery handles all cross-browser issues. Is that an option?