我正在使用聚合物1.我在聚合物中使用过这样的东西,我从使用这个组件的那一点开始传递该部分的内容 . 它适用于chrome和firefox . 但是对于IE-11,我没有得到任何内容 .
<section id="asdf" class="className"> <content select="section"></content> </section>
有人知道这个问题吗?
尝试将 select 属性值设置为包含句点 . select 属性需要选择器而不是字符串 .
select
<template> <header>Local dom header followed by distributed dom.</header> <content select=".content"></content> <footer>Footer after distributed dom.</footer> </template>
Polymer docs
1 回答
尝试将
select
属性值设置为包含句点 .select
属性需要选择器而不是字符串 .Polymer docs