dojo opacity in ie9

泪湿孤枕 提交于 2019-12-12 18:12:54

问题


I have seen this bug report for dojo which was fixed in 1.5.2, however even with dojo 1.6 I still cannot get get opacity to work with dojo.style

Example: http://jsfiddle.net/EXzhA/9/

What's the problem here?


回答1:


While not a great fix, you can try setting opacity to 1.1 or some non 1 value. As to what is going on, a very preliminary look at it seems to indicate some strange floating point stuff going on. Regardless, the DXImage filter doesn't seem to want to accept 100 for opacity, or is unhappy with whatever value dojo cooked up. Take a look at the value when you set opacity to 1.1 : filter: progid:DXImageTransform.Microsoft.Alpha(Opacity=110.00000000000001); zoom: 1;

Regardless, opacity values greater than 1 seem to behave reasonably in Chrome and IE9, and work okay for 0 <= opacity < 1



来源:https://stackoverflow.com/questions/8243056/dojo-opacity-in-ie9

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!