与NG重复引导,标签之间没有空格 [英] No spacing between bootstrap-labels with ng-repeat

查看:133
本文介绍了与NG重复引导,标签之间没有空格的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我加入利用angular.js纳克重复的标签,他们显示无间距。
这里是一个 Plunker 这表明它。

When I am adding labels using ng-repeat from angular.js, they are shown without spacing. Here is a Plunker which demonstrates it.

但是,如果我手动添加标签,只是复制了HTML,那么他们显示有空格。

But if I add labels manually, just has copied html, then they are shown with whitespace.

有没有一种方法来添加标签之间的空白,无需额外的造型,因为它在纯引导呢?

Is there a way to add white space between labels without additional styling, as it does in pure bootstrap?

推荐答案

您可以在你的HTML标记改变这个...

You could change your HTML markup to this...

   <div class="panel-heading">
    My panel
    <span ng-repeat="tag in tags"><span class="label label-primary">{{tag}}</span> </span>
   </div>

演示: http://bootply.com/113372

这篇关于与NG重复引导,标签之间没有空格的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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