纸张菜单按钮内的纸张项中的链接 [英] Link in paper-item inside paper-menu-button

查看:92
本文介绍了纸张菜单按钮内的纸张项中的链接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用Polymer构建一个Flask项目.我不认为烧瓶方面让我感到困惑.当我点击编辑物种"纸质项目时,我什么也不会走.

I'm trying to build a little Flask project using Polymer. I don't think the flask aspect is messing with me. When I click on the 'Edit Species' paper-item I don't go anywhere.

<body>
    <core-header-panel flex>
        <core-toolbar class="medium-tall">
            <paper-menu-button icon="menu">
                <paper-item label="Home" center horizontal layout flex></paper-item>
                <paper-item label="Edit Species" center horizontal layout flex>
                    <a href="/speciesEdit"></a>
                </paper-item>
                    ...more...
            </paper-menu-button>
            ...and so on...

要使链接在纸张菜单按钮内正常工作,我还需要做其他事情吗?

Is there something else I need to do to get the link to work inside a paper-menu-button?

感谢您的帮助!

推荐答案

对于Polymer 1.0,将class="flex"添加到每个锚定标记中.如果您使用的是Polymer 0.5,请使用flex属性而不是类.

For Polymer 1.0, add class="flex" to each of your anchor tags. If you're using Polymer 0.5, use the flex attribute instead of the class.

这篇关于纸张菜单按钮内的纸张项中的链接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆