【发布时间】:2015-04-02 01:23:05
【问题描述】:
我正在尝试使用 angularJS 循环填充 div 标签中的数据。
<div>
<div class='box' ng-repeat="product in Products | filter:{'scid': SCId.toString()}:true | orderBy:'pname'">
<br>
<b>{{product.bname}} </b>
<br>{{ product.pname }}
<br>
<img src="http://localhost/{{ product.image_path }}" alt="" border=3 height=75 width=75></img>
</div>
</div>
这是我的 CSS 类。
.box {
margin : 5px;
display : inline-block;
width: 150px;
height: 250px;
background-color: grey;
text-align:center;
}
但它没有正确渲染。 (一些随机的顶部和底部边距)
有人可以帮助我做错什么吗?
【问题讨论】: