moz css黑客文本阴影 [英] moz css hack for text shadow

查看:139
本文介绍了moz css黑客文本阴影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图在Mozilla浏览器中创建文本阴影。 (我使用这个解决方法解决一些我使用的字体的问题。)

I am trying to create a text shadow in Mozilla browsers only. (I'm using this as a workaround for some issues with a font that I'm using.)

我尝试过 -moz-text -shadow ,但似乎这已经停止,它不再需要moz扩展。但是我不想让IE和Webkit使用文本阴影。

I have tried -moz-text-shadow, but it seems that this is now defunct and it no longer needs the moz extension. But I don't want IE and Webkit to use the text shadow.

为什么会删除-moz函数?

Why would the -moz function would be taken away?

推荐答案

您可以使用CSS黑客单独定位FF,例如:

You can target FF alone by using a CSS hack, such as:

body:not(:-moz-handler-blocked) a { background-color: red; }

快速演示: http://jsfiddle.net/DxjeL/

对于所有其他浏览器,框应为红色,蓝色。

Box should be red for firefox and blue for all the other browsers.

http://paulirish.com/2009/browser-specific-css- hacks /

这篇关于moz css黑客文本阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆