Mozilla CSS hack for text shadow [英] Mozilla CSS hack for text shadow

查看:92
本文介绍了Mozilla CSS hack for text shadow的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我仅尝试在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扩展名了.但是我不希望Internet Explorer和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 Internet Explorer and WebKit to use the text shadow.

为什么要取消-moz功能?

推荐答案

您可以使用CSS hack来单独定位Firefox,例如:

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

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

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

对于Firefox,该框应为红色;对于所有其他浏览器,该框应为蓝色.

The box should be red for Firefox and blue for all the other browsers.

这来自 浏览器CSS黑客 .

这篇关于Mozilla CSS hack for text shadow的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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