当我使用angular-carousel指令时,内容未显示:
<ul rn-carousel rn-carousel-controls rn-carousel-index="carouselIndex" rn-carousel-buffered >
<li ng-repeat="slide in slides track by slide.id" >
<div class="text-center main-hiw-description">
<img class="img-circle img-hiw" src="{{slide.image}}" alt="logo" />
<h4>{{slide.title}}</h4>
<p>
{{slide.description}}
</p>
</div>
</li>
</ul>
答案 0 :(得分:2)
要显示您必须添加ccs高度和宽度的内容:
ul {
height:300px;
width: 600px;
background:blue;
}
大多数示例在乞讨时都包含css规则:
或者您可以添加ccs规则来调整内容的高度(我个人推荐此选项):
ul[rn-carousel] {
> li {
position: relative;
margin-left: -100%;
&:first-child {
margin-left: 0;
}
}
}