Bootstrap 第3章 表格和按钮
<!doctype html> <html lang="zh-cn"> <head> <meta charset="utf-8"> <title>排版样式</title> <link rel="stylesheet" href="css/bootstrap.min.css"> </head> <body style="margin:50px;"> <!--<table class="table table-hover">--> <!--<table class="table table-striped">--> <!--<table class="table table-bordered">--> <table class="table table-striped table-hover"> <thead> <tr> <th>编号</th> <th>姓名</th> <th>性别</th> <th>年龄</th> </tr> </thead> <tbody> <tr> <td>1</td> <td>吴者然1</td> <td>男</td> <td>12</td> </tr> <tr class="info"> <td>2</td> <td>吴者然2</td> <td>男</td> <td>29</td> </tr> <tr class="success"> <td>3</td> <td>吴者然3</td> <td>男</td> <td>33</td> </tr> <tr class="sr-only"> <td>4</td> <td>吴者然4</td> <td>男</td> <td>41</td> </tr> </tbody> </table> <a href="###" class="btn btn-default">Link</a> <input type="button" class="btn btn-default" value="按钮"> <button class="btn btn-default">按钮</button> <button class="btn btn-success">按钮</button> <button class="btn btn-info">按钮</button> <button class="btn btn-info btn-lg">按钮</button> <button class="btn btn-info btn-sm">按钮</button> <button class="btn btn-info btn-xs">按钮</button> <button class="btn btn-info btn-block">按钮</button> <button class="btn btn-info btn-block active">按钮</button> <button class="btn btn-info btn-block disabled">按钮</button> <script src="js/jquery.min.js"></script> <script src="js/bootstrap.min.js"></script> </body> </html>
效果图:
相关推荐
行吟阁 2020-08-09
表格的现在还是较为常用的一种标签,但不是用来布局,常见处理、显示表格式数据。在HTML网页中,要想创建表格,就需要使用表格相关的标签。<table> <tr> <td>单元格内的文字</td> ...
gufudhn 2020-08-09
玫瑰小妖 2020-06-07
lyg0 2020-05-28
世樹 2020-11-11
SCNUHB 2020-11-10
bleach00 2020-11-10
FellowYourHeart 2020-10-05
momode 2020-09-11
思君夜未眠 2020-09-04
jessieHJ 2020-08-19
末点 2020-08-03
nimeijian 2020-07-30
好记忆也需烂 2020-07-28
zlsdmx 2020-07-05
tomson 2020-07-05
tianqi 2020-07-05