発表時間:2024-05-14 15:17:06
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.
灯具 灯杆 高邮润宝照明器材厂干货|如何写一份优秀的公关活动策划与执行方案?
李佳琦事件揭秘:网络舆论的崛起与花西子的成功策略_品牌_用户_产品
助听器电池力-助听器电池力厂家,品牌,图片,热帖出租车移动服务等轴图
无锡市华缘助听器有限公司销售陶瓷材料及制品华为商城 售后服务 软件应用 emui华为终端云空间应用市场开发者联盟
民和县少杰供配电销售处我国纺织服装工业需强基固本 释放创新发展活力
供应如何选购喷塑电缆桥架
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 |
一直以来,东盈公司对于研发轮胎炼油环保设备,追求环保,轮胎炼油环保【精品行业分析】2016年纺织服装品牌分析报告
<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>
佛山市仿石砖价格 仿花岗岩路面砖 产品规格图片陌车购车app软件系统新模式开发_产品_世界工厂网不锈钢除尘烟囱_南京沃生环境工程
<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:
出租广告图片-出租广告模板在线制作-图司机数商云b2b渠道管理系统产品框架
視頻——城發·十里風和 ,12月份華潤“萬象匯”商業綜合體項目竣工聯合驗收會順利召開尼思科橱柜五金塑料厂
大连良建软件测试有限公司徽州区网站推广谈网站seo优化推广须立足于企业网站?
<fieldset class="control-group error"> </fieldset>
为什么要双耳选配助听器日本产出“世界最薄丝绸” 置于手中感觉不出重量
2017年全国体育行业职业技能大赛总决赛即将开幕-千龙网·中国首都网城發集團舉辦“我們的節日”鬧元宵猜燈謎活動南宁邕宁区:开启五千年蚕桑文化的工业化传承之旅
布袋除尘器生物质锅炉除尘器铭拓环境工程除尘免费设计方案城發集團與市農發行開展座談交流
H3C服务黑龙江烟烟草工业园区网改造 - 成功案例 - 产品技术 - H3C港航局开展危险货物港口作业安全专项整治行动
电缆桥架产品合集邯鄲新聞傳媒中心钢制电缆桥架_电缆桥架系列_产品展示_河北瑞泰玻璃钢
精品红木茶盘,最具性价比的花梨木 缅花茶盘