我有一个绑定(bind),可以通过 polymer 绑定(bind)更改我的 div 的颜色。它在 IE 中除外。
<div horizontal layout class="navigation" style="background-color:{{toolbarColor}};">
</div>
<script>
Polymer('mapscontroller-element', {
currentPoint: 0,
toolbarColor: "#0099cc",
...
currentPointChanged: function() {
this.toolbarColor = this.toolbarColorArray[this.currentPoint];
}
});
最佳答案
那么问题是什么?我花了 5 秒钟谷歌搜索并找到了 polymer documentation这解释了为什么存在兼容性问题以及该问题的潜在解决方法。 不要偷懒!
关于html - Polymer Binding 仅在 IE 中不适用于 CSS,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31217071/