Is there any jquery plugin (or any other way) to force IE8 to show multiple background images?
相关问题
- How to fix IE ClearType + jQuery opacity problem i
- jQuery add and remove delay
- Adding a timeout to a render function in ReactJS
- Include empty value fields in jQuery .serialize()
- Disable Browser onUnload on certain links?
CSS3 PIE might do what your looking for CSS3 PIE
If it is not more than 3 images as background, you can play around the
:before
and:after
in the css. See this link for example.You may need to add the following in the head though if you want ie7 to behave as well:
CSS3 Multiple Backgrounds for Internet Explorer and legacy Mozilla Firefox
This library brings support for multiple background images to Internet Explorer 6-8 and Firefox <=3.5 by reading the CSS code from style and link tags.
CSS3 browser support extends to background-image, background-position, background-repeat. This library only implements its own property for the shorthand style background property.
http://plugins.jquery.com/project/multiple-bg
Example Usage
Including the Script
All that needs to be included is the jQuery library and this script for these features to work. No extra Javascript coding is required. The minified library is only 8.7kB!
Writing the CSS
Multiple backgrounds using the background property are read using this Javascript library. Notice how hover and active states are supported.