mirror of
https://github.com/jquery/jquery.git
synced 2025-01-10 18:24:24 +00:00
Only attempt to use the IE technique for setting opacity if the filter property exists (otherwise fallback to the standards-compatible technique).
This commit is contained in:
parent
dc060f08cd
commit
5673e4bc3a
@ -49,7 +49,7 @@ jQuery.extend({
|
||||
var style = elem.style || elem, set = value !== undefined;
|
||||
|
||||
// IE uses filters for opacity
|
||||
if ( !jQuery.support.opacity && name === "opacity" ) {
|
||||
if ( !jQuery.support.opacity && name === "opacity" && style.filter ) {
|
||||
if ( set ) {
|
||||
// IE has trouble with opacity if it does not have layout
|
||||
// Force it by setting the zoom level
|
||||
|
Loading…
Reference in New Issue
Block a user