jQuery/CSS 文本阴影效果

标签 jquery css

是的,我想在问之前先找到一些东西。

我在我的网站上工作,我决定使用文本阴影,这听起来很简单,但事实并非如此。

IE 不支持 text-shadow 属性,但我想让它跨浏览器所以我想要一个 jQuery 插件,但我找不到支持 IE 的工作插件。我希望它支持 IE 6+,但我可以妥协,让它只支持 IE 7+。

我不想要一个重复文本的插件。例如,当您突出显示文本、复制和粘贴时,您会多次看到相同的单词/句子。我想要一个可以使用图层 (z-index) 制作并且可以在任何条件下工作的插件。

谢谢。

最佳答案

关于在 IE 中以更简单的方式模仿 text-shadow 的一些信息可以在 http://www.impressivewebs.com/css3-text-shadow-ie/ 找到。

然而,正如他们所说:

But in many cases, you’d be better off not using a filter or any kind of script. Let IE see a lesser experience, and save the good stuff for the better browsers.

Also, even though the IE filters are not loading up any extra scripts, they still have performance issues and can slow the rendering of the page. So again, if you can avoid them, then do so.

关于jQuery/CSS 文本阴影效果,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6901354/

相关文章:

javascript - jQuery - 悬停显示侧边栏,但可以选择锁定它

javascript - 国际电话输入问题

javascript - 使用纯 CSS 的表单输入验证

javascript - 如何显示一个div并隐藏所有其他div

javascript - 随时间动画div

css - 我们如何将 css 属性添加到样式组件中的类?

css - JAVAFX - 使用 CSS 的按钮上的透明栏

css - HTML/CSS 图像对齐

jquery - CSS3 向上滑动效果

Jquery .toggle() 导致元素在页面加载时淡出