iOS7的动态类型CSS类是什么?

时间:2021-11-24 17:00:20

Or rather- is there a complete list of the CSS classes like -apple-system-headline1 etc available?

或者更确切地说——是否有完整的CSS类列表,如-apple-system-headline1等?

3 个解决方案

#1


1  

This code snippet gives the complete list of values for dynamic fonts:
https://gist.github.com/linjunpop/6657893

此代码片段给出动态字体的完整值列表:https://gist.github.com/linjunpop/6657893

You'll have to experiment in order to see their real usage, because Apple has not documented yet these values:
Safari CSS Reference

为了了解它们的实际用途,您必须进行实验,因为苹果尚未记录这些值:Safari CSS引用

#2


1  

After some head scratching, I realized the currently accepted answer list is not completely correct (e.g. -apple-system-headline1). The official list can be found at Apple's website in their Safari documentation, and is currently:

在我挠头之后,我意识到目前被接受的答案列表并不是完全正确的(例如,苹果系统的标题1)。官方名单可以在苹果的Safari网站上找到,目前是:

font: -apple-system-body;
font: -apple-system-headline;
font: -apple-system-subheadline;
font: -apple-system-caption1;
font: -apple-system-caption2;
font: -apple-system-footnote;
font: -apple-system-short-body;
font: -apple-system-short-headline;
font: -apple-system-short-subheadline;
font: -apple-system-short-caption1;
font: -apple-system-short-footnote;
font: -apple-system-tall-body;

I hope this saves someone some time.

我希望这能节省一些时间。

#3


0  

http://www.mobilexweb.com/blog/safari-ios7-html5-problems-apis-review?utm_source=buffer&utm_campaign=Buffer&utm_content=buffer5e195&utm_medium=google

http://www.mobilexweb.com/blog/safari-ios7-html5-problems-apis-review?utm_source=buffer&utm_campaign=Buffer&utm_content=buffer5e195&utm_medium=google

I found this website after googling. There's a section on css if you scroll down a little bit. That might help you.

我在谷歌上搜索之后发现了这个网站。如果你向下滚动一点,就会看到css的一部分。或许可以帮到你。

#1


1  

This code snippet gives the complete list of values for dynamic fonts:
https://gist.github.com/linjunpop/6657893

此代码片段给出动态字体的完整值列表:https://gist.github.com/linjunpop/6657893

You'll have to experiment in order to see their real usage, because Apple has not documented yet these values:
Safari CSS Reference

为了了解它们的实际用途,您必须进行实验,因为苹果尚未记录这些值:Safari CSS引用

#2


1  

After some head scratching, I realized the currently accepted answer list is not completely correct (e.g. -apple-system-headline1). The official list can be found at Apple's website in their Safari documentation, and is currently:

在我挠头之后,我意识到目前被接受的答案列表并不是完全正确的(例如,苹果系统的标题1)。官方名单可以在苹果的Safari网站上找到,目前是:

font: -apple-system-body;
font: -apple-system-headline;
font: -apple-system-subheadline;
font: -apple-system-caption1;
font: -apple-system-caption2;
font: -apple-system-footnote;
font: -apple-system-short-body;
font: -apple-system-short-headline;
font: -apple-system-short-subheadline;
font: -apple-system-short-caption1;
font: -apple-system-short-footnote;
font: -apple-system-tall-body;

I hope this saves someone some time.

我希望这能节省一些时间。

#3


0  

http://www.mobilexweb.com/blog/safari-ios7-html5-problems-apis-review?utm_source=buffer&utm_campaign=Buffer&utm_content=buffer5e195&utm_medium=google

http://www.mobilexweb.com/blog/safari-ios7-html5-problems-apis-review?utm_source=buffer&utm_campaign=Buffer&utm_content=buffer5e195&utm_medium=google

I found this website after googling. There's a section on css if you scroll down a little bit. That might help you.

我在谷歌上搜索之后发现了这个网站。如果你向下滚动一点,就会看到css的一部分。或许可以帮到你。