在安装bootstrap-3和accounts-ui-bootstrap-3之后,当使用{{loginButtons}}时,ui-accounts登录小部件没有出现.而是< div>被发现在它的位置,但没有小部件可见.
要显示的小部件是否还有其他步骤?
添加Bootstrap 3包
mrt add bootstrap-3 mrt add accounts-ui-bootstrap-3
main.html中
<body> {{> header}} </body> <template name="header"> <div class="navbar navbar-fixed-top navbar-inverse" role="navigation"> <div class="container"> <div class="navbar-header"> <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button> <a class="navbar-brand" href="#">My Bootstrap 3 App</a> </div> <div class="collapse navbar-collapse"> <ul class="nav navbar-nav"> <li class="active"><a href="#">Home</a></li> <li>{{ loginButtons }}</li> </ul> </div><!-- /.nav-collapse --> </div><!-- /.container --> </div> </template>
{{loginButtons}}的输出
<div id="login-buttons" class="login-buttons-dropdown-align-right"></div>
更新
未对齐{{loginButtons}}
文档中正确对齐的示例