発表時間:2024-05-14 08:50:13
Tag | Description |
---|---|
<table> | Wrapping element for displaying data in a tabular format |
<thead> |
Container element for table header rows (<tr> ) to label table columns
|
<tbody> |
Container element for table rows (<tr> ) in the body of the table
|
<tr> |
Container element for a set of table cells (<td> or <th> ) that appears on a single row
|
<td> | Default table cell |
<th> |
Special table cell for column (or row, depending on scope and placement) labels Must be used within a <thead> |
<caption> | Description or summary of what the table holds, especially useful for screen readers |
<table> <thead> <tr> <th></th> <th></th> </tr> </thead> <tbody> <tr> <td></td> <td></td> </tr> </tbody> </table>
Name | Class | Description |
---|---|---|
Default | None | No styles, just columns and rows |
Basic | .table | Only horizontal lines between rows |
Bordered | .table-bordered | Rounds corners and adds outer border |
Zebra-stripe | .table-striped | Adds light gray background color to odd rows (1, 3, 5, etc) |
Condensed | .table-condensed | Cuts vertical padding in half, from 8px to 4px, within all td and th elements |
Tables are automatically styled with only a few borders to ensure readability and maintain structure. With 2.0, the .table
class is required.
<table class="table"> </table>
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry | the Bird |
Get a little fancy with your tables by adding zebra-striping—just add the .table-striped
class.
Note: Striped tables use the :nth-child
CSS selector and is not available in IE7-IE8.
<table class="table table-striped"> </table>
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry | the Bird |
Add borders around the entire table and rounded corners for aesthetic purposes.
<table class="table table-bordered"> </table>
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
Mark | Otto | @TwBootstrap | |
2 | Jacob | Thornton | @fat |
3 | Larry the Bird |
Make your tables more compact by adding the .table-condensed
class to cut table cell padding in half (from 8px to 4px).
<table class="table table-condensed"> </table>
# | First Name | Last Name | Username |
---|---|---|---|
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry the Bird |
Feel free to combine any of the table classes to achieve different looks by utilizing any of the available classes.
<table class="table table-striped table-bordered table-condensed"> ... </table>
Full name | |||
---|---|---|---|
# | First Name | Last Name | Username |
1 | Mark | Otto | @mdo |
2 | Jacob | Thornton | @fat |
3 | Larry the Bird |
The best part about forms in Bootstrap is that all your inputs and controls look great no matter how you build them in your markup. No superfluous HTML is required, but we provide the patterns for those who require it.
信州数字经济产业园区多媒体三维数字沙盘与一体机互动演绎艺术与设计的深度碰撞艺设会第一季圆满结束
"欢乐春节"文化交流活动赴欧洲四国拉开序幕
"南北朝时期造像艺术与文化交流"学术研讨会在成都博物馆举行笔试巴哈特公司比亚迪或将在匈开设一家新工厂四,恢复海南入境免签
全生物可降解塑料袋亮相武汉商超 价格如何信息价值和供应链管理僵尸鸡尾酒照片-正版商用图片1c0wcp-摄图新视界
電力光纖入戶 光通信搶占智能電網中银宏观:9月经济数据点评需求改善,关注风险_博宝头条
汽车办公室装修效果图案例
Name | Class | Description |
---|---|---|
Vertical (default) | .form-vertical 乐鱼地址 | Stacked, left-aligned labels over controls |
Inline | .form-inline | Left-aligned label and inline-block controls for compact style |
Search | .form-search | Extra-rounded text input for a typical search aesthetic |
Horizontal | .form-horizontal | Float left, right-aligned labels on same line as controls |
香港纪伯伦国际拍卖集团 笔墨横姿 中国古代书画精品赏析紫光档案 档案管理系统软件
<form class="well">
<label>Label name</label>
<input type="text" class="span3" placeholder="Type something">
<span class="help-inline">Associated help text!</span>
<label class="checkbox">
<input type="checkbox"> Check me out
</label>
<button type="submit" class="btn">Submit</button>
</form>
Reflecting default WebKit styles, just add .form-search
for extra rounded search fields.
<form class="well form-search"> <input type="text" class="input-medium search-query"> <button type="submit" class="btn">Search</button> </form>
Inputs are block level to start. For .form-inline
and .form-horizontal
, we use inline-block.
<form class="well form-inline"> <input type="text" class="input-small" placeholder="Email"> <input type="password" class="input-small" placeholder="Password"> <label class="checkbox"> <input type="checkbox"> Remember me </label> <button type="submit" class="btn">Sign in</button> </form>
费用内控与网上报销系统摩托车头盔怎么选?教你从盔型,材质,安全等级来挑选头盔!潍坊口腔健康科技馆数字多媒体全息柜产品展示
<form class="form-horizontal"> <fieldset> <legend>Legend text</legend> <div class="control-group"> <label class="control-label" for="input01">Text input</label> <div class="controls"> <input type="text" class="input-xlarge" id="input01"> <p class="help-block">Supporting help text</p> </div> </div> </fieldset> </form>
Shown on the left are all the default form controls we support. Here's the bulleted list:
【山东手动卷板机厂家直销】-家酿葡萄酒的5个大坑,有人经常犯,为了家人安全,别不当回事
透明自封袋食品价格 透明自封袋食品批发 透明自封袋食品厂家 Hc360慧聪网压力传感器地砖灯光互动高档彩盒礼品盒印刷定做 快递水果喜糖包装盒子 牛皮包装纸盒定做
潍坊口腔健康科技馆展厅多媒体-签名留言拍照傅里叶变换红外光谱仪
<fieldset class="control-group error"> </fieldset>
光纤传感器能否实现多参量测量?... 2024-01-31农博时刻丨组图 直击农产品的大型 走秀 现场
农博时刻丨组图 直击农产品的大型 走秀 现场"南北朝时期造像艺术与文化交流"学术研讨会在成都博物馆举行书房家具选购技巧 书柜报价
泰顺青少年法制教育展厅多媒体虚拟骑行体验供应链管理体系下的物流管理-论文
月饼塑料圆形吸塑雪媚娘蛋黄包装盒100枚烘焙包装点心包装盒傅里叶变换红外光谱仪
最严限塑令 生效,在贵阳出门得自带袋子吗艺术与设计的深度碰撞艺设会第一季圆满结束被中国论文工厂侵蚀的癌症和麻醉科研领域是否会影响临床患者的安危
简述钢结构件加工的切割方式