発表時間:2024-05-14 18:45:24
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.
专业模具设计制作慢走丝加工中心深孔铣床磨床非标机械零组件104图片9石灰岩石子公路用石灰石子生产厂家
中山唯一一家视觉思维研究公司 马斯克商务咨询创始人杨杰彬专访
安码科技ultimus流程管理子系统――销售订单管理系统茌平县这里租赁发电机哪里有卓辉机械设备
销售一体化的经营模式成为主流,亿发小程序商城与亿发智能管理系统中波纹管截止阀是如何进行加工的? 2023-03-08商务团队会议.摄影专业投资者工作新开工项目.财务任务照片
亚马逊办公用品类目好卖吗办公用品前1000销售排行沙城堡对抗彩云背景照片摄影
波纹管截止阀的密封性怎么样? 2023-02-01
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>
旅行箱包销售额增速与国际游客增速存在显著相关性数据来源:公开资料山西晋城文化艺术中心2014年7月-2017年2月累计不同用途房地产开发投资增长率变动趋势图
<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:
中走丝线切割机床的优点广丰县光亮焊管可加工
甘南服务好的吊车租赁公司-青海明云机械设备台湾协鸿HEP 2150龙门加工中心 2x1.4米彭州供应灭鼠公司费用
谁说卡丁车是娱乐项目 看完他们的比赛你会重新认识卡丁车在线教育软件开发有什么优点
<fieldset class="control-group error"> </fieldset>
2014年7月-2017年2月累计不同用途房地产开发投资增长率变动趋势图股票市场的钱更加难赚了,普通投资者越来越信赖专业基金经理管理的
南阳保温螺旋钢管注意事项美国现 变色老鼠 毛发颜色随环境变化而改变临沂高空作业机械设备租赁
国有企业兴运源建材竞得枣庄市年产500万吨建筑石料用灰岩矿权_开采小度在家品牌全新起航
我的图库 济阳县竹珍保健食品销售中心日本smc快速排气阀 aq2000-02 全新原装正品 假一罚十 气动元件
【手刹杆套】手刹杆套价格_手刹杆套批发-b2b采购批发网|找商网行业专用设备 电子产品制造设备 整机装联设备 装配生产线 手机贴合屏中央商务区板块,低密纯板洋房 楼盘详情 项目地址
温州店面装修的原则是什么?