【发布时间】:2015-11-17 17:36:53
【问题描述】:
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">
【问题讨论】:
标签: css polymer polymer-1.0