How can I get this text-shadow to work with IE filters?
I need to get the , , and tags on my site: http://designsweeter.com/ ...to work in IE 6, 7, 8, 9 and 10.
Is there a javascript plugin to get IE to understand the text-shadow property?
If not, is it possible to do through IE filters like shadow()
? Is there a converter online that will convert my text-shadow to IE filters?
If none of the above, is there an alternative?
Here are my headers tags:
h1{
margin-left:auto;
margin-right:auto;
text-shadow:0 3px 0 #444,0 5px 10px rgba(0,0,0,.8),0 5px 5px rgba(0,0,0,.3);
font-size:30px;text-align:center;
开发者_如何学Cfont-weight:400;
padding:10px;
}
h1 a:active{
position:relative;
font-weight:400;
top:2px;
text-shadow:0 3px 4px rgba(0,0,0,.6);
}
h2{
text-align:center;
font-size:25px;
opacity:.9;
font-weight:200;
color:#fff;
text-shadow:-1px -2px 1px #000;
}
h3{
text-align:center;
text-shadow:-1px -1px 1px #000;
opacity:.7;
font-size:15px
}
Why do you want to use JavaScript and apply the shadow, won't it be easy to use the css directly. Using css would cause less reflow/paint events. Use the simple filter: shadow(color=#FF0000)
This here should work: http://kilianvalkhof.com/2008/javascript/text-shadow-in-ie-with-jquery/
Check this out:
http://www.workingwith.me.uk/examples/css-drop-shadows.html#ie_win_and_safari
精彩评论