0
看來我的css mixins沒有被應用,如plunker所示。我可否知道爲什麼color: green
未被應用?謝謝。聚合物2 css mixin沒有生效
看來我的css mixins沒有被應用,如plunker所示。我可否知道爲什麼color: green
未被應用?謝謝。聚合物2 css mixin沒有生效
如果您使用CSS mixins,則需要導入CSS mixins polyfill。
<!-- import CSS mixins polyfill -->
<link rel="import" href="/bower_components/shadycss/apply-shim.html">
來源:Click here。
此外,您正在使用您尚未導入的custom-style
。由於您並未在該文件中導入polymer.html
,所以需要導入。
<link rel="import" href="/bower_components/polymer/lib/elements/custom-style.html">
custom-style
不附帶Polymer.Element
,必須單獨導入 。custom-style
包含在legacy polymer.html
導入中。