简体   繁体   中英

CSS3 text-shadow effect with jQuery

I wanted to be able to create a effect identical to CSS3 text-shadow Property, making it available to browsers that doesn't support this CSS3 Property (like IE 7 and 8).

And so I found two plugins: Text Shadow and Drop Shadow Effect .

I decided to use Text Shadow, because it was released in the end of 2008, and because it was more straightforward.

This worked great for IE8. However in IE7 shadows have twice the distance to the text, and links are weird.

IE8 image 替代文字

IE7 image alt text http://img651.imageshack.us/img651/2569/ie7.jpg

I am searching for a fix, or an alternative to this problem.

I just solved my own problem.

I used a pure JavaScript plugin called: ie7-js .

This plugin is very useful, because it makes old IE's behave more like modern browsers.

Thank you all for your time and attention anyway.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM