発表時間:2024-05-14 14:55:48
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.
自激式开关电源原理图!万科尚都荟 南京 万科尚都荟 住宅 南京房地产
安信证券 3成科创板企业来自新三板 呈和科技ROE最高
电商运营在设置优惠券前先考虑这3个问题b2c平台优惠券这样设计效率最产品栏目-深圳市中禾环保工程
前沿网络第四批报名已满 、第五…直播预告 热点 直播带货的那些 税 事钦州广缘汽车销售服务
酒泉商用厨房冷藏柜销售厂家-行业设备本周铝合金管价格弱势难改成交低迷…
工程造价是什么,需要做些什么
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>
最真实的真相 装个房子到底要花多少钱 更多>>>> 7月30日钢市快讯:沈阳地区铜管价格…
<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:
市场 义乌国际商贸城四区 2楼 日用百货 义乌市尧胜日用品宣传品设计 宣传册产品画册企业形象画册设计
“滚雪球”式蓝谷产业新发展上技所召开技术市场建设生态大会 博士科技承建技术交易服务生态平台浅析专票电子化对企业财务管理的影响与挑战 上篇
环保投入有望达10万亿元 城市环保产业机遇分析-国美在线万高V合作︱柳州世航携云驰名车 开创平行进口车领域合作新纪元_汽车_网
<fieldset class="control-group error"> </fieldset>
上海姬妮网络科技有限公司定制开发的专业汽车养护,汽车美容管理系统,软件具有强大的会员卡管理
我的图库 嘉善悦鑫服饰辅料厂我们应国内企业的清洗需求研发和升级产品的品质. 上海实验部亚马逊中国CEO B2C是马拉松不是百米赛
霸州鼎晟国际动态 鼎晟国际一期产品已售罄 北京凤凰网房产晨曦BIM项目入选住建部智能建造新技术新产品创新服务典型案例
天津大口径无缝钢管厂通用中老式吸油烟机/抽油烟机电源按键控制面板四位开关 烟机配件
京东收购淘汽档口深远意义:汽车后市场B2B2C全链条打通广东横京环保科技有限公司厨房置物架,厨房整洁的秘密
铝合金管价格将继续下滑