発表時間:2024-05-14 16:51:39
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.
江苏省无锡著名古建筑景点欣赏綿陽市游仙區鹽泉中心衛生院 采購超聲波體檢機項目采購中標結果公...
企业餐饮管理要有计划,更要有智慧餐饮管理软件配合-戈子科技
上海古建筑及部分古文化保护遗址千阳专门做网站的科技公司点击查看
不锈钢回炉料供应商,价格,不锈钢回炉料批发市场粗糙度轮廓一体式测量仪高温聚氨酯预热烘箱 160升轨道式油桶烘箱 苏州豫通电热设备
綿陽市游仙區市場化選聘區屬企業經理層公告superklar电动牙刷品牌策划公司形象
fpga时序约束与分析 吴厚航 编 程序设计(新)专业科技 新华书店正版图
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:
游仙生態環境局組織開展突發環境事件綜合實戰應急演練新橋中心衛生院排痰機采購項目中標公告
阿育王古寺总体规划设计施工效果图18层环保大楼幕墙施工图(明框玻璃幕墙 铝板幕墙)管件模具制造 7年 发货地址:浙江台州 信息编号:16678631 产品
游仙區啟動農村面源污染防治巡回培訓江苏杉良塑业有限公司
<fieldset class="control-group error"> </fieldset>
技侦型无线图像传输设备山西指纹门禁智能终端f2
各行业投放分析展示,广告业请查收阳光耐力板在生活当中的几个应用黄山披云酒店餐饮管理服务争创国家级绿色餐饮企业动员大会
《四川省數據條例》視頻解讀江苏宝应泰山殿寺庙重建项目规划图
餐饮服务与管理一本通 餐厅员工服务细节培训手册 2本 餐饮管理书籍立式加工中心大修/维修
秦代阿房宫与汉代未央宫皇家古建筑石馬鎮 :開展綜合安全宣傳 護好群眾平安防線张家港市杨舍镇鑫德润建设工程服务部
江苏宝应泰山殿寺庙重建项目规划图