2017-04-12 50 views
0

DOM渲染在Chrome和IE11中有所不同。在Chrome中,它工作良好,但在IE中[[item]]中的所有值在一起在一個標記中。在IE11中選擇聚合物內容

<template is="dom-repeat" items="[[distChildren]]"> 
 
    <px-column label> 
 
    <content select=".item[[item]]"></content> 
 
    </px-column> 
 
</template>

回答

0

後選擇添加$如果您正在使用DOM重複。

<content select$=".item[[item]]"></content> 
+0

你能給出一些關於你的答案的細節嗎? – Mitiku

+0

@Mitiku下面的鏈接將幫助你理解:https://www.polymer-project.org/1.0/docs/devguide/data-binding#attribute-binding –