発表時間:2024-05-14 18:34:58
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.
空调保温工程报价 厂家日照市礼澳新型建材有限公司
电商erp系统丨一站式解决方案就选数商云
生活水管爆管时的紧急测漏与抢修工程【下】2017年IF大奖小型电子产品合集
小程序商城-微企邦网络小程序开发-ktv小程序商城针织羊毛背景四川丝绸网 南充家丰时装公司复工生产第一批服装出口欧州
成都水生植物种植江西省新余市加快仙女湖水环境治理步伐
济南旭旺投资管理的合作商机-书生商贸平台
Name | Class | Description |
---|---|---|
Vertical (default) | .form-vertical ope滚球会员登录 | 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 |
兆驰光元 Mini LED背光产业化的中坚力量许锦钻石(上海)有限公司
<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>
男女性高爱潮免费播放IIC固体免维护防爆灯BFC8183 5W高效节能LED防爆灯图片 高清大图 谷瀑环保惠州家庭水管漏水测漏
<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:
厂家直销潜流湿地水生植物种植伞型结构化证券投资信托产品简介
专业酿酒设备做生料酒口感不如熟料看做酒3年的老师傅怎么说义乌市威正日用品厂兆驰光元 Mini LED背光产业化的中坚力量
企业销售购销链系统进销存软件分享FES25CA 3X 315LK4V比例定向插装阀
<fieldset class="control-group error"> </fieldset>
南京简诚网络科技有限公司伞型结构化证券投资信托产品简介
DB61∕T 717-2013 玉米 华糯1号(陕西省)人脸安防系统开发扫脸识别验证软件定制公司打卡考勤管理平台搭建厂家直销潜流湿地水生植物种植
东莞市大岭山辉业水泥预制品加工店13424151003 企业库东莞市空威针织服装有限公司
墙灯/cob天花射灯/家具灯/石英天花灯/mr16卤素筒灯】价格,厂家,图片點擊查看更多VR案例
生料酒酿造用水很重要智领未来!金融科技助力广汽汇理库存融资业务数字化转型专业酿酒设备做生料酒口感不如熟料看做酒3年的老师傅怎么说
宁海地下水管测漏