javascript - 在angularjs中带有表格数据的引导轮播
问题描述
我试图用滑块显示我的表格,但它显示在一行中,或者整个数据显示在一个滑块中,但我想在一个滑块中显示 10,10 条记录。
这是我尝试过的,但它现在正在工作。
<uib-carousel interval="myInterval">
<uib-slide ng-repeat="user in test" active="active" index="$index">
<div class="row">
<div class="col-md-12 col-xs-12">
<div class="table-responsive">
<table cellpadding="0" cellspacing="0" border="0" class="table table-striped table-bordered" id="example">
<thead>
<tr>
<th>Name</th>
<th>
<center>Address</center>
</th>
<th>Person</th>
<th>Number</th>
</tr>
</thead>
<tbody>
<tr>
<td ng-click="gotoEdit(user) " class="curPointer "><a><u>{{user.Name}}</u></a></td>
<td>{{ user.address.addressLine1}},{{user.address.city}},{{user.address.zipcode}}</td>
<td>{{ user.Person}}</td>
<td>{{ user.Phone}}</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</uib-slide>
</uib-carousel>
解决方案
推荐阅读
- android - 使用谷歌地图指向特定位置
- python-3.x - Pandas:取具有匹配值的行的平均值
- javascript - 如何发布 Ajax 请求
- sql - Hibernate DDL 更新 SQL 查询
- math - R 编程语言有这种语法吗?
- javascript - 如何使用代码点火器 fromework 在 PHP 中打印出模态内部的内容
- angular - 如何避免使用 Visual Studio 2017 在 Angular 4 的生产模式下加载 node_modules 和 .ts 文件
- json - Cloudformation,模板验证错误:无效的模板属性或属性
- android - 用于 fastboot 和 adb 的 Windows 10 原始 USB 访问
- c# - 如何让眼睛随机眨眼?