效果圖: php
<table class="table table-striped table-bordered table-hover"> <thead> <tr> <th> <span class="uni"> <input type='checkbox' value='check1'/> </span> </th> <th>頭像</th> <th>姓名</th> <th>暱稱</th> <th>電話</th> <th>性別</th> <th>操做</th> </tr> </thead> <tbody> <!-- 二維數組輸出表格 --> <?php foreach($users as $key => $value){ ?> <tr> <td> <span class="uni"> <input type='checkbox' value='check1'/> </span> </td> <td> <img src="../assets/img/user.jpg" alt=""/> </td> <td> <?php echo $value['name']; ?> </td> <td> <?php echo $value['nickname']; ?> </td> <td> <?php echo $value['mobile']; ?> </td> <td> <?php echo $value['sex']; ?> </td> <!-- 二維數組輸出表格 結束 --> <td> <button class="btn btn-xs btn-default"><i class="icon-pencil"></i></button> <button class="btn btn-xs btn-danger"><i class="icon-remove"></i></button> </td> </tr> <?php } ?> </tbody> </table>
參考: html
須要技術諮詢或技術外包請聯繫我: 數組
【我的站點-萬里虎】http://www.bravetiger.cn/
spa
【QQ】623277008 .net
【OSC衆包服務產品】https://zb.oschina.net/market/opus/855386_330 code
【新博客】http://www.cnblogs.com/kenshinobiy/ htm