使用聚合物cdn polygit

时间:2016-09-17 03:36:58

标签: polymer rendering cdn

我一直试图在plunker上使用聚合物CDN,polygit,但我甚至无法渲染单个聚合物元素。在下面的插件和代码链接中,我尝试渲染纸张标签和纸张按钮。请有人能告诉我我做错了什么。感谢。

https://plnkr.co/edit/z0y06qu4LdfpxhcpYyn7?p=preview

...
 <head>
    <base href="http://polygit.org/polymer+:master/components/">
    <script src="webcomponentsjs/webcomponents-lite.min.js"></script>
    <link href="polymer/polymer.html" rel="import">
  ` <link  rel="import" href="paper-material/paper-material.html">
   <link href="paper-button/paper-button.html" rel="import">
   <link href="paper-tabs/paper-tabs.html" rel="import">
</head>
<body unresolved>
   <paper-button raised>New</paper-button>
   <paper-tabs>
      <paper-tab>Color</paper-tab>
      <paper-tab>Code</paper-tab>
      <paper-tab>Mark</paper-tab>
   </paper-tabs>
</body>
...

1 个答案:

答案 0 :(得分:0)

将协议更改为https将解决您的问题。

<base href="https://polygit.org/polymer+:master/components/">