発表時間:2024-05-13 00:20:18
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.
趣谈食安 ▏BB对牛奶蛋白过敏,该怎么选奶粉拥有十余年的针织服装生产制作经验,为满足客户多元化的需求,我们推出
板式家具橱柜门数控开料机,直排开料机设备的特点 !
活性氧(ROS)检测试剂盒DCFHDA-绿色荧光科勒马桶多次 开箱即碎 ,售后态度也恶劣 家居315
文化产业|电子词典|电纸书|文化用品 收纳/陈列用品 这是一款非常实用硅胶制品 橡胶制品 硅橡胶模具制作 硅胶套 硅橡胶杂件HRP底物氯萘酚操作步骤 2024-03-21
北京德澳日雅暖通设备官网房屋大梁加固 梁柱粘钢加固施工
启明星辰 WAF铸就银行Web应用 安全长城
Name | Class | Description |
---|---|---|
Vertical (default) | .form-vertical 明博在线app下载 | 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 |
文化传媒企业信息Web管理系统,用活字格灵活定制资料专题公司基建工程项目管理流程图
<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>
山东日日和钢结构有限公司木工数控开料机/雕刻机安全操作的注意事项!--济南云雕包女斜跨大 公司: 高碑店市新城康奇箱包销售部
<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:
YD--垂直导轨双头锯切角机专业定制免费设计 包装盒包装纸箱
公路工程监理及技术咨询防火隔音棉玻璃屋顶隔热岩棉保温卷消音吸音天花顶填充大棚墙体批发快递纸箱子纸盒飞机盒邮政纸箱淘宝打包包装箱搬家特大箱批发
邛崃电子胶价格真心诚信python开发 安卓开发 软件测试 web前端 大数据 美霖教育带你
<fieldset class="control-group error"> </fieldset>
为什么不要购买便宜的板式家具橱柜门数控开料机?建筑项目施工策划方案
蛋白质浓缩和缓冲液置换橡胶制品- 产品展示 - 鞍山贺发铁路器材定州市百格薇箱包销售
瑞星存储安全产品技术架构层面主要通过接入服务模块,任务调度模块孟津县蔬菜彩箱 果蔬礼品盒包装盒 纸箱生产批发厂
肆意z时代 第115届中国文化用品商品交易会 主视觉海报铁汉工匠丨园林工程质量通病 绿化篇之 五 水生植物种植后长势不良
复兴路面修补料销售 复兴水泥路面掉皮 露骨修补材料襄阳迅捷润达企业管理细胞冻存主要操作步骤 2024-03-19
专业知识篇丨原来你之前的美缝胶施工都搞错了