小编ion*_*lmc的帖子

处理聚合物元素遗传的最佳方法

给出如下元素:

<polymer-element name="custom-element">
    <template>
        <style>
            #container {
                color: red;
            }
        </style>
        <div id="container" on-click="{{clickContainer}}">
            ... lots of other stuff here ...
        </div>
    </template>
    <script>
        Polymer('custom-element', {
            clickContainer: function() {

            }
        });
    </script>
</polymer-element>
Run Code Online (Sandbox Code Playgroud)

我想要另一个包装第一个的元素:

<polymer-element name="my-custom-element" extends="custom-element">
    <!-- extra styling -->
    <script>
        Polymer('my-custom-element', {
            clickContainer: function() {
                this.super();
            }
        });
    </script>
</polymer-element>
Run Code Online (Sandbox Code Playgroud)

我的问题:

  • 指定其他样式的最佳方法是什么?
  • 我可以将基本元素包装在额外的标记中(比如另一个容器)吗?
  • 我可以从基本元素中选择元素吗?像<content select=".stuff">基地的阴影标记一样.

html javascript css web-component polymer

21
推荐指数
1
解决办法
1832
查看次数

如何在没有openoffice.org的情况下将ODT转换为DOC/RTF

有没有办法在没有openoffice或任何依赖安装openoffice的库的情况下将odt文件转换为linux或rtf?

rtf openoffice.org doc odf

6
推荐指数
1
解决办法
1万
查看次数

标签 统计

css ×1

doc ×1

html ×1

javascript ×1

odf ×1

openoffice.org ×1

polymer ×1

rtf ×1

web-component ×1