I know that Internet Explorer has some proprietary extensions so that you can do things like create divs with a gradient background. I can't remember the element name or it's usage. Does anyone have some examples or links?
相关问题
- Views base64 encoded blob in HTML with PHP
- How to fix IE ClearType + jQuery opacity problem i
- Is there a way to play audio on a mobile browser w
- HTML form is not sending $_POST values
- implementing html5 drag and drop photos with knock
Two things I discovered while struggling with IE 9 gradient.
-ms-filter
did not work for me. I had to use simplyfilter
.height: 100%
to my class for IE to use the gradient.Just thought I'd add this useful link: http://css3please.com/
Shows how to get gradients working in all browsers.
The
filter
style should work for IE8 and IE9.The code I use for all browser gradients:
You will need to specify a height or
zoom: 1
to applyhasLayout
to the element for this to work in IE.Update:
Here is a LESS Mixin (CSS) version for all you LESS users out there: