我正在使用Polymer构建一个使用纸质标签和核心页面的网站.我遇到的问题是,我似乎无法让标签的click事件影响正在显示的页面,并且所有内容都保持隐藏状态,除非我专门选择我想要显示的页面.
所以我真的只是想让标签表现出标签应该表现的方式.
到目前为止,这是我的代码:
<body unresolved>
<paper-tabs selected="0" selectedindex="0" id="paper-tabs" >
<paper-tab id="paper-tab" active>ABOUT</paper-tab>
<paper-tab id="paper-tab1">PORTFOLIO</paper-tab>
<paper-tab id="paper-tab2">CONTACT</paper-tab>
</paper-tabs>
<core-pages selected="{{$.paper-tab.selected}} " selectedindex="0" notap id="core-pages">
<about-me id="paper-tab" active>
<h2 horizontal center-justified>Worldwide Jamie</h2>
<p>Jamie is a Chicago-based freelance front end web developer.</p>
<p>Clearly this website is <b>Under Development</b></p>
<p>Come back soon to see how great your site could be</p>
</about-me>
<portfolio-list id="portfolio">
<!--Insert slider?-->
</portfolio-list>
<contact-me id="contact">
</contact-me>
</core-pages>
</body>
</html>
Run Code Online (Sandbox Code Playgroud)
提前感谢您的任何时间和考虑.