简体   繁体   English

ie11 的聚合物含量问题

[英]Polymer content issue for ie11

I am using polymer 1. I have used something like this in polymer and I am passing the section's content from the point where i use this component.我正在使用聚合物 1。我在聚合物中使用了类似的东西,并且我从使用该组件的地方传递了该部分的内容。 It's working fine for chrome and firefox.它适用于 chrome 和 firefox。 But for IE-11, I am not getting anything for the content.但是对于 IE-11,我没有得到任何内容。

<section id="asdf" class="className">
    <content select="section"></content>
</section>

Does someone know the about this issue ?有人知道这个问题吗?

Try setting the select attribute value to contain a period.尝试将select属性值设置为包含句点。 The select attribute needs a selector not a string. select属性需要一个选择器而不是一个字符串。

<template>
  <header>Local dom header followed by distributed dom.</header>
  <content select=".content"></content>
  <footer>Footer after distributed dom.</footer>
</template>

Polymer docs 聚合物文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM