CSS3 text-shadow effect with jQuery

匿名 (未验证) 提交于 2019-12-03 08:54:24

问题:

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 alt text http://img714.imageshack.us/img714/5201/regularz.jpg

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

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

回答1:

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.



易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!