2017-04-12 49 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 –