哪里可以找到一个好的jQuery drop shadow插件?
有没有人对drop shadow jQuery插件有好的推荐?
Does anyone have a good recommendation for a drop shadow jQuery plugin?
我一直在研究一个项目,它让页面上的每个元素都有一个微妙的掉落阴影,我们开始使用 RUZEE 来制作阴影,但是当你有了在页面上计算出超过4或5个阴影。
I've been working on a project that had every element on the page with a subtle drop shadow, we started using RUZEE to do the shadows but there was a severe performance hit when you had more then 4 or 5 shadows being calculated on the page.
我去了编写我自己的插件,我把它称为简单的阴影,它只使用jQuery在想要投影的div周围的浮动div中注入图像。没有什么优雅,但为了完成该网站,它的工作没有性能点击。
I went to writing my own plugin, I call it simple shadow and it only uses jQuery to inject images in floating div's around the div you want a drop shadow. Nothing elegant but for the purpose of completing that site it worked without performance hits.
现在我的插件并不特别,但我仍然在寻找一个好的轻量级影子插件。
Now my plugin isn't anything special but I am still in search for a good light weight shadow plugin.
CSS 3将支持投影。 Firefox和Safari已经支持该功能。
CSS 3 will support drop shadow. Firefox and Safari are already supporting the feature.
您可能希望使用它而不是jQuery功能,因为它将在关闭javascript的浏览器中运行。
You might want to use that instead of the jQuery functionality, since it will run in browsers who have turned off javascript.
查看 http:// www .css3.info / preview / box-shadow / 用于阴影的演示。