Polymer 1.0元素包含自定义CSS变量,您可以使用内联样式来对其进行样式设置,如下所示:
<style is="custom-style">
paper-toolbar {
--paper-toolbar-color: blue;
}
</style>
这个方法很有效,非常好。我怎样能够做到相同的效果,但使用外部样式表? 在链接标记中添加is="custom-style"
似乎没有任何效果,因为下面的代码不起作用:
<link rel="stylesheet" media="all" href="app.css" is="custom-style">