我想知道如何使用 paper-styles
.文档 says :
The component provides simple ways to use Material Design CSS styles in your application. The following imports are available:
...
- typography.html: Material Design font styles and sizes
typography.html
定义了几个 mixin,例如:
-
--paper-font-display4: {
-
--paper-font-display3: {
-
--paper-font-display2: {
-
--paper-font-display1: {
-
--paper-font-headline: {
-
--paper-font-title: {
-
--paper-font-subhead: {
-
--paper-font-body2: {
-
--paper-font-body1: {
我的问题是:我应该对这些使用哪个 HTML 元素?例如,是 font-display4
似乎相当于 h1
,但我很困惑:是否有某种对应关系?或者,我应该总是使用 <p>
?
注意:交叉询问as an issue在 paper-style 的 Github 页面中
最佳答案
如果您只是想构建一个常规网站,请尝试使用 Material Design Lite 而不是 Polymer。 getmdl.io
关于html - Material字体与HTML元素的对应关系,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35413872/