<p style="color: hsl(230, 100%, 50%);
text-shadow: 0 2px 0 0px hsl(330, 100%, 25%),
0 3px 2px 0px hsla(330, 100%, 15%, 0.5),
0 3px 0 3px hsl(350, 100%, 50%),
0 5px 0 3px hsl(350, 100%, 25%),
0 6px 2px 3px hsla(350, 100%, 15%, 0.5),
0 6px 0 9px hsl(20, 100%, 50%),
0 8px 0 9px hsl(20, 100%, 25%),
0 9px 2px 9px hsla(20, 100%, 15%, 0.5),
0 9px 0 18px hsl(50, 100%, 50%)
0 11px 0 18px hsl(50, 100%, 25%),
0 12px 2px 18px hsla(50, 100%, 15%, 0.5),
0 12px 0 30px hsl(70, 100%, 50%),
0 14px 0 30px hsl(70, 100%, 25%),
0 15px 2px 30px hsla(70, 100%, 15%, 0.5),
0 15px 0 45px hsl(90, 100%, 50%),
0 17px 0 45px hsl(90, 100%, 25%),
0 17px 2px 45px hsla(90, 100%, 15%, 0.5);">Text Shadow</p>
这是我的代码,我从http://msdn.microsoft.com/en-us/hh867756.aspx 复制它应该给该页面上的颜色幸福效果。我正在使用Firefox 30.我也尝试在opera中打开它,但它在那里也不工作。 我试图将hsla更改为rgb(我知道这是无用的,但我只是试过任何方法)。 我也删除了所有新行,但仍然没有文字 - 阴影只出现简单的文字。任何提示为什么会发生?为什么这些文字阴影效果不起作用?
你为什么要设置'了'p'元素的style'属性里面的CSS?为什么不制作课程并在其周围包装“div”? – 2014-08-27 14:00:28
您在这些文字阴影中设置了太多参数。删除前导0.此外,为什么你想在同一文本中设置17个不同的阴影? – Havenard 2014-08-27 14:04:33
我说我跟随http://msdn.microsoft.com/en-us/hh867756.aspx 这正是写在那里。我也尝试删除前导零。这是行不通的 – 2014-08-27 14:06:33