我需要使一个链接到另一个页面在流星使用流星包。我正试着用一个按钮把它添加到标题的右边。如果我在{{#contentFor "headerButtonRight"}}中创建一个按钮-它会按预期对齐。但是如果我添加了一个标记对齐就不再适用了。我尝试将元素放入"headerTitle“并添加类"pull-right”,但结果是相同的。目前,我的代码如下所示:
{{#contentFor "headerButtonRight"}}
<a href="{{pathFor 'drafts.add'}}" class="pull-right"><button class="button button-clear pull-right">{{> ionIcon icon="ios-barcode"}} Scan</button></a>
{{/contentFor}}如果这不是将链接按钮放在标题右侧的正确方式-什么是正确的?
提前谢谢你。
发布于 2015-04-21 05:53:40
你可能不需要嵌套在链接里的按钮…
{{#contentFor "headerButtonRight"}}
<a href="{{pathFor 'drafts.add'}}" class="button button-clear">{{> ionIcon icon="ios-barcode"}} Scan</a>
{{/contentFor}}https://stackoverflow.com/questions/29274080
复制相似问题