小编Jos*_* C.的帖子

在IE中使用<table>或<select>中的dom-repeat中断

当与聚合物表和选择下拉菜单中工作,我发现我可以使用DOM重复模板的内<table>/ <select>打印出值的数组的标签.除了当然Internet Explorer之外,这对所有浏览器都完美无缺.

例:

<select>
  <template is="dom-repeat" items="{{listOfItems}}" as="item">
    <option value="{{item.value}}">{{item.name}}</option>
  </template>
</select>
Run Code Online (Sandbox Code Playgroud)

直接来自聚合物元素目录的另一个例子:

<table id="element-table">
  ...
  <tbody>
    <template is="dom-repeat" items="[[elements]]">
      <tr on-tap="nav" target$="[[item.name]]">
        <td class="name" width="100">[[item.name]]</td>
        <td class="description relative">[[item.description]]</td>
        <td class="tags">
          <template is="dom-repeat" items="[[item.tags]]">
            <tag-link name="[[item]]" on-tap="tagTapped"></tag-link><span>,</span>
          </template>
        </td>
        <td class="actions">
          <element-action-menu element="[[item.name]]" icons-only=""></element-action-menu>
        </td>
      </tr>
    </template>
  </tbody>
</table>
Run Code Online (Sandbox Code Playgroud)

这是不是现在Internet Explorer中不支持(我在Polymer网站上注意到他们不允许IE浏览器访问表页面)或有没有办法做到这一点?

internet-explorer web-component internet-explorer-11 polymer

5
推荐指数
1
解决办法
2392
查看次数