如何获得类似苹果网站的字体样式?

发布于 2024-11-04 10:02:18 字数 277 浏览 3 评论 0原文

苹果在其网站中使用了一种带有白色阴影的字体,使其看起来像雕刻/蚀刻字体。我发现了一些技巧,但总是非常有限。 (顺便说一句,此网站中使用了相同的效果 具有不同的颜色)

他们如何获得这种字体效果并使其在所有浏览器中工作。有人知道一个脚本(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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

泡沫很甜 2024-11-11 10:02:18

不确定你在 Apple 网站中的意思,但在另一个链接中,它是通过以下 CSS 实现的...

text-shadow: white -1px 1px;

像往常一样,IE 不太支持最新的 CSS 内容。我想< IE9 不支持该属性。

看起来您可以使用 Microsoft 专有的 filter 属性来实现类似的功能...

filter: Shadow(Color=#fffffff, Direction=0, Strength=1);

Not sure about where you mean in the Apple site, but in the other link, it is achieved with the following CSS...

text-shadow: white -1px 1px;

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...

filter: Shadow(Color=#fffffff, Direction=0, Strength=1);
顾忌 2024-11-11 10:02:18

根据记录,这并不适用于所有浏览器。不确定它是否适用于任何版本的 IE,但在 FF、Chrome 和 Safari 中应该可以正常工作。

关键的 CSS 属性是 text-shadow这是快速参考

示例如下:

<style type="text/css">
   body {
     background-color: gray;
     color: black;
     text-shadow: 0px 1px 0px white;
   }
</style>

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 ref

An example follow:

<style type="text/css">
   body {
     background-color: gray;
     color: black;
     text-shadow: 0px 1px 0px white;
   }
</style>
笑看君怀她人 2024-11-11 10:02:18

我在谷歌上做了一些嗅探,这就是苹果“据说”使用的......

h1 {

color:black;

font: 35px/50px "Lucida Grande", Arial, Verdana, sans-serif;   

}

I did some sniffing around google and this is what apple "supposedly" uses...

h1 {

color:black;

font: 35px/50px "Lucida Grande", Arial, Verdana, sans-serif;   

}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文