如何获得类似苹果网站的字体样式?
苹果在其网站中使用了一种带有白色阴影的字体,使其看起来像雕刻/蚀刻字体。我发现了一些技巧,但总是非常有限。 (顺便说一句,此网站中使用了相同的效果 也具有不同的颜色)
他们如何获得这种字体效果并使其在所有浏览器中工作。有人知道一个脚本(javascript 甚至 css 的东西)来获得完全相同的效果吗? 谢谢
Apple uses in it's web site a font with a kind of white shadow that make it look like a engraved/etched font. I found some tricks but it's always very limited. (btw the same effect is used in this web site too with different color)
What they do to get this font effect and make it work in all browsers. Someone know a script (javascript or even css stuff) to get the exact same effect ?
Thank you
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
不确定你在 Apple 网站中的意思,但在另一个链接中,它是通过以下 CSS 实现的...
像往常一样,IE 不太支持最新的 CSS 内容。我想< IE9 不支持该属性。
看起来您可以使用 Microsoft 专有的
filter
属性来实现类似的功能...Not sure about where you mean in the Apple site, but in the other link, it is achieved with the following CSS...
As usual, the latest CSS stuff isn't so well supported by IE. I'd imagine < IE9 won't support this property.
It looks like you can use the Microsoft proprietary
filter
property to achieve something similar...根据记录,这并不适用于所有浏览器。不确定它是否适用于任何版本的 IE,但在 FF、Chrome 和 Safari 中应该可以正常工作。
关键的 CSS 属性是
text-shadow
。 这是快速参考示例如下:
For the record, this doesn't work in all browsers. Not sure if it works in any version of IE, but in FF, Chrome, and Safari it should work fine.
The key CSS attribute is
text-shadow
. Here's a quick refAn example follow:
我在谷歌上做了一些嗅探,这就是苹果“据说”使用的......
I did some sniffing around google and this is what apple "supposedly" uses...