如何使用 Polymer 1.0 纸张样式颜色?
How do I use polymer 1.0 paper-styles colors?
如何将 paper-toolbar 的背景颜色设置为 --paper-teal-500?
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="bower_components/paper-styles/paper-styles.html">
<style is="custom-style">
paper-toolbar {
background-color: paper-teal-500;
}
</style>
</head>
<body style="margin: 0;">
<link rel="import" href="bower_components/paper-toolbar/paper-toolbar.html">
<paper-toolbar>
<div title>Tabara</div>
</paper-toolbar>
好吧,我设法弄明白了。
background-color: var(--paper-teal-500);
会的。
希望对有需要的人有所帮助!
如何将 paper-toolbar 的背景颜色设置为 --paper-teal-500?
<script src="bower_components/webcomponentsjs/webcomponents-lite.min.js"></script>
<link rel="import" href="bower_components/paper-styles/paper-styles.html">
<style is="custom-style">
paper-toolbar {
background-color: paper-teal-500;
}
</style>
</head>
<body style="margin: 0;">
<link rel="import" href="bower_components/paper-toolbar/paper-toolbar.html">
<paper-toolbar>
<div title>Tabara</div>
</paper-toolbar>
好吧,我设法弄明白了。
background-color: var(--paper-teal-500);
会的。 希望对有需要的人有所帮助!