如何在 HTML 和 CSS 中制作发光文本
我想用 HTML 和 CSS 制作发光文本。我正在关注这个教程。
我希望文本发光,就像 Windows Vista 和 7 上的最小化、最大化和退出按钮在悬停时发光一样在他们之上。
我已经在线阅读了 8 个教程,都说 FILTER 仅适用于 IE(完全是胡说八道,我使用的是 IE9 RC,它甚至不显示),所以我发现的关于发光的教程都没有真正适用于像 <代码>
等。
如何使文本在悬停时发光? (无图像)
I want to make glowing text in HTML and CSS. I'm following this tutorial.
I want the text to glow, just like the minimize, maximize and exit buttons on Windows Vista and 7 glow when you hover over them.
I have read 8 tutorials online, all saying that FILTER ONLY works on IE (Complete BS btw, I am using IE9 RC and it doesn't even display), so none of the tutorials I have found about glowing actually work for text like <p>, <a> <h1>
etc.
How can I make my text glow on hover? (without images)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
也许可以尝试一下 CSS3 text-shadow。
IE8 及以下版本不支持它,但这就是
filter
派上用场的地方。PS CSS3 text-shadow 属性的一个巧妙的小功能是它允许多个阴影。
Have a play with CSS3 text-shadow perhaps.
IE8 and below won't support it, but that's where
filter
comes in handy.P.S. A neat little feature of the CSS3 text-shadow property is that it allows multiple shadows.
在这里查找示例 http://enjoycss.com/gallery/text_effects
您可以在编辑器中打开它们并调整任何 css3 参数
然后只需通过enjoycss获取您需要的css3代码(它将生成),
例如 http://enjoycss.com /39/1#textShadow
find examples here http://enjoycss.com/gallery/text_effects
you can open each of them in editor and adjust any css3 parameters
then just get css3 code that you need (it will be generated) by enjoycss
for example http://enjoycss.com/39/1#textShadow
试试这个 CSS3 技巧!
Try this CSS3 Trick!
如果您相信您对这个问题有答案,请务必分享。因为我不会放弃这一点。我想要文本上的发光效果,就像我想要每天早上喝咖啡一样。
与此同时,我找到了一个一半好、一半cr*p的解决方案:
If you believe you have an answer to this question, please, by all means share it. As I am not going to give up on this. I want the glow effect on Text just as much as I want my coffee every morning.
I have found a half-good, half-cr*p solution in the meantime: