2017-09-05 91 views

回答

1

如果您使用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 導入中。

Working plunker.