浏览器对文本阴影传播值的支持 [英] Browser support for text-shadow spread value

查看:69
本文介绍了浏览器对文本阴影传播值的支持的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

可见的讨论此处,但已经2年!

Seen discussions here but it has been 2 years!

我不知道我是否在使用此权限,但是我有以下sass/compass代码:

I don't know if I'm using this right but I have the following sass/compass code:

+text-shadow(red 0 3px 0 3px)

生成以下css:

text-shadow: red 0 3px 3px, red 0 3px 0 3px;
text-shadow: red 0 3px 0 3px, red 0 3px 0 3px;

Chrome/Safari/Firefox/Opera均不起作用.

Which not works in neither Chrome/Safari/Firefox/Opera.

这是声明中的内容还是此spread功能确实从规格中删除了?

Is this something with the declaration or this spread feature was really removed from specs?

推荐答案

它表示

It says in the specs that,

此属性接受以逗号分隔的阴影效果列表 应用于元素的文本.值解释为 阴影" [CSS3BG]. (但是请注意,传播的值不允许 .) 阴影将应用于元素的所有文本以及任何文本 它指定的装饰.

This property accepts a comma-separated list of shadow effects to be applied to the text of the element. Values are interpreted as for ‘box-shadow’ [CSS3BG]. (But note that spread values are not allowed.) The shadow is applied to all of the element's text as well as any text decorations it specifies.

这篇关于浏览器对文本阴影传播值的支持的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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