IE 8: Background-Size Fix
Unable to implement background-size in Internet Explorer? Fret no longer! Here's a potential solution inspired by 'Dan's' insightful response in another thread:
Alternative Fix for Non-Sprite Users
The following code allows you to implement background-size in IE without compromising sprite functionality:
filter: progid:DXImageTransform.Microsoft.AlphaImageLoader( src='images/logo.gif', sizingMethod='scale'); -ms-filter: "progid:DXImageTransform.Microsoft.AlphaImageLoader( src='images/logo.gif', sizingMethod='scale')";
Caution
While this solution effectively scales images to fit the designated area, it does have one caveat: it renders any links within that area non-clickable.
The above is the detailed content of How Can I Fix Background-Size in Internet Explorer 8?. For more information, please follow other related articles on the PHP Chinese website!