如何在玉的ng重复角度div之间创建空间? [英] How to create a space between angular ng-repeated divs in jade?
本文介绍了如何在玉的ng重复角度div之间创建空间?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
代码是:
.container
my-directive(ng-repeat="item in items", item="item")
我的目标是在证明中使用该空间来创建未知数量的div均匀分布的网格.
My goal is to use that space with justify to create an evenly spaced grid of an unknown number of divs.
推荐答案
看来问题出在ng-repeat
.这是一个玉器解决方案:
It seems the issue is with ng-repeat
. Here's a jade solution:
.container
my-directive(ng-repeat-start="item in items", item="item")
span(ng-repeat-end) #{' '}
这是我发现的HTML等效解决方案: https://stackoverflow.com/a/19507046/4760334
Here's an equivalent solution for HTML I found: https://stackoverflow.com/a/19507046/4760334
这篇关于如何在玉的ng重复角度div之间创建空间?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文