Chrome不显示带有展开值的文本阴影 [英] Chrome doesn't display text-shadow with a spread value

查看:209
本文介绍了Chrome不显示带有展开值的文本阴影的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这个非常简单的HTML文档:

I have this extremely simple HTML document:

<html>
    <head>
        <title>test</title>
    </head>

    <body>
        <div style="text-shadow: 0px 0px 5px black">
            This should have a text shadow.
        </div>
    </body>
</html>

在Chrome 12.0.742.0(最新版本)中,text-shadow不显示 - 它看起来像正常的文本。如果你删除第三个参数(spread)它会渲染,但这是没有用的大多数时候,当你不想要一个1像素非模糊阴影。如何让它正常显示?我认为我的语法可能是错误的,但我不这么认为,因为只有一些阴影在这个页面上显示在Chrome: http://www.w3.org/Style/Examples/007/text-shadow

And in Chrome 12.0.742.0 (latest dev version) the text-shadow does not display at all - it looks just like normal text. If you remove the third parameter (spread) it will render, but this is useless most of the time when you don't want a 1-pixel non-blurred shadow. How do I get it to display properly? I thought my syntax might be wrong but I don't think so because only some of the shadows on this page are shown in Chrome: http://www.w3.org/Style/Examples/007/text-shadow.

推荐答案

是的,我刚更新到12.0.742.0,注意到我的网站的阴影消失了。我不会担心它,除非它在未来的Chrome版本中停留。

Yea, I just updated to 12.0.742.0 and noticed the shadow disappeared from my website. I'm not going to worry about it unless it stays gone in future Chrome releases.

这篇关于Chrome不显示带有展开值的文本阴影的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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