Warning: file_get_contents(/data/phpspider/zhask/data//catemap/6/entity-framework/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Polymer 不会出现聚合物/纸张元素_Polymer_Paper Elements - Fatal编程技术网

Polymer 不会出现聚合物/纸张元素

Polymer 不会出现聚合物/纸张元素,polymer,paper-elements,Polymer,Paper Elements,我开始使用聚合物和为它设计的纸张元素的网站。我已经安装使用鲍尔的组件,似乎我有在正确的地方一切。这是我的密码: <html> <head> <script src="bower_components/webcomponentsjs/webcomponents.js"></script> <link rel="import" href="bower_components/core-scaffold/core-scaffold.

我开始使用聚合物和为它设计的纸张元素的网站。我已经安装使用鲍尔的组件,似乎我有在正确的地方一切。这是我的密码:

<html>
<head>
    <script src="bower_components/webcomponentsjs/webcomponents.js"></script>

    <link rel="import" href="bower_components/core-scaffold/core-scaffold.html">
    <link rel="import" href="bower_components/core-item/core-item.html">
    <link rel="import" href="bower_components/paper-input/paper-input.html">
    <link rel="import" href="bower_components/paper-fab/paper-fab.html">
</head>
<body fullbleed unresolved>
<template is="auto-binding">
    <core-scaffold>
        <core-header-panel navigation flex>
            <core-toolbar class="tall">

            </core-toolbar>
        </core-header-panel>

        <div tool layout horizontal flex>
            <span flex>Toolbar Text</span>
            <core-icon icon="account-circle"></core-icon>
            <span>7</span>
        </div>

        <div flex>
            <div class="send_message" layout horizontal>
                <paper-input flex label="Enter Text..." id="input" value="{{input}}"></paper-input>
                <paper-fab icon="send" id="sendButton" on-tap="{{sendMyMessage}}"></paper-fab>
            </div>
        </div>

    </core-scaffold>
</template>

</body>

</html>

工具栏文本
7.

一旦我加载了网页,什么也没有显示。如果我取出模板标记,我可以在工具栏中看到文本,但仍然没有任何元素呈现。感谢您的帮助,提前谢谢

根据您对
核心-*
元素(替换为)和
自动绑定
(替换为)的使用情况,您似乎正在使用旧版本的Polymer(<1.0)。Polymer docs有一个可以帮助您升级的工具,但它可能更容易从零开始,使用(最新和最好的)。

这样可以修复模板标记并显示工具栏文本……但它仍然没有显示任何纸张元素,只是一个顶部有工具栏文本的空白白页。哦,我刚刚注意到你们使用的是核心组件,它们来自聚合物0.5。我会更新我的答案。我现在明白了,我在Polymr网站上做了更多的阅读。将一些元素从核心元素更改为纸质元素,现在可以使用了。我仍然会很感激编辑,但只是想让你知道我有他们出现