我正在使用 polymer 1。 我在 polymer 中使用过类似的东西,并且从我使用这个组件的地方开始传递该部分的内容。 它适用于 chrome 和 firefox。 但是对于 IE-11,我没有得到任何内容。
<section id="asdf" class="className">
<content select="section"></content>
</section>
有人知道这个问题吗?
最佳答案
尝试将 select
属性值设置为包含句点。 select
属性需要一个选择器而不是一个字符串。
<template>
<header>Local dom header followed by distributed dom.</header>
<content select=".content"></content>
<footer>Footer after distributed dom.</footer>
</template>
关于javascript - ie11 的 Polymer 内容问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46406339/