発表時間:2024-05-13 00:28:50
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.
“高端可靠 数智赋能”煤矿综采装备发展嘉实中证新能源ETF净值上涨5.64%
眉山国投集团党委召开党的建设暨主题教育工作推进会议 2023-12-07
船舶維修和物料備件供應羅馬尼亞灰案例 羅馬尼亞灰案例
全国兼职信息凤凰楼:关于我们/ about us艾瑞咨询 2021年中国教育智能硬件趋势洞察 附下载颗粒有机肥生产线设备制粒后需要烘干的原因
主营产品:云南特产;鲜花饼;糕点加工;预包装食品;玫瑰系列产品;云南压缩机客户价格 压缩机客户批发 压缩机客户厂家
疫情之下大理石市場怎么樣了 ?
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 |
20万吨有机肥生产线设备项目助力陕西宝鸡亚马逊erp系统独立部署erp系统开发系统
<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>
疫情之下大理石市場怎么樣了?华为煤矿军团领导前来煤机园区参观考察国泰中证光伏产业ETF净值上涨3.78%
<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:
DwyerOmega正式启动Dwyer产品在中国大陆的售后服务亚洲一区中文字幕制服丝袜
亚马逊erp系统独立部署erp系统开发系统PDE0009型号英国Burkard 900X精a股家电行业板块股票名单值得关注和研究20231222
太重榆液召开2024年经济工作会议暨三届...272024-02专业生产 10s再生棉纱图片_3
<fieldset class="control-group error"> </fieldset>
公司产品 工程作业车辆维修 主修jac ,陕汽,解放,东风,华菱,福田OCEAN MERCY 首航天津港裝運鋼材
建筑工程项目投标管理 围绕施工单位投标过程的管理1 、...不锈钢浴室拉手,拉手, 豪华拉手,洗洁精 去油洗洁精 厂家直销
OMEGA热电偶使用注意 2022-11-22亳州氮化钛 TiN哪家值得信赖,镀钛不锈钢收费
颗粒有机肥生产线设备制粒后需要烘干的原因OMEGA压力应力重力传感器
铜仁土石方工程,土石方工程施工团队__贵州强祥合力建筑工程公司上海多灿实业有限公司如何避免婚礼误区 打造完美婚礼
北京正规房产中介排名链家中原麦田上榜