問題:
<i>
Bootstrapアイコンをレンダリングするタグを作成できないようです.Bootstrapによって提供されるクラスを認識しません:
診断する要素
tag.html
<link rel="import" href="../bower_components/polymer/polymer.html">
<polymer-element name="polymer-tag" attributes="name">
<template>
<link rel="import" href="bootstrap.html">
<style>
:host { display: block; }
</style>
<div>
<span class="name">{{ name }}</span>
<!-- This classes are not recognized and the icon is not displayed -->
<i class="glyphicon glyphicon-plus-sign"></i>
</div>
</template>
<script>
Polymer('polymer-tag', {...});
</script>
</polymer-element>
インポートを外部に移動しようとしましたが、<polymer-element>
どちらも機能しません。
bootstrap.html
これが含まれています:
<link rel="stylesheet" type="text/css" href="../bower_components/bootstrap/dist/css/bootstrap.min.css">
インポートの代わりに単純な古いリンクをロードすると機能しますが、インデックスでbootstrap.css
も使用すると、サイトが 2 回ロードされますbootstrap.css
bootstrap.css
これは Web コンポーネントの制限ですか? これはPolymerの問題ですか?
ありがとう!
フラン