発表時間:2024-05-14 17:44:56
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.
江西安居兄弟新型建材便利店装修效果图连锁便利店装修效果图便利店效果图2
线性 宽幅 等离子清洗机价格 线性 宽幅 等离子清洗机型号规格
畜牧产品冷链物流园项目可行性研究报告模板拿地申请立项软件外包市场APP开发火爆,企业合作需慎重
预判: 厨具行业销售或将在9月份恢复正常 眼下,疫情正在慢慢散去,部分线性 宽幅 等离子清洗机价格 线性 宽幅 等离子清洗机型号规格于2017年2月获批建设省级农业高新技术产业开发区,大力实施"规划先行
ssd固态硬盘深圳云存厂家直销Elgato Eve 功能全面的家庭监测设备
别墅装修一般多少钱?
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 |
家禽畜牧养殖产品溯源系统华北管材管件品牌_华北管材管件商家_华北管材管件价格-中国建材网
<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>
漫说集体经济发展的五种模式小树枝 大用途 大自然手工创意制作安徽国风木塑年产4万吨绿色新型建材项目总投资1.
<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:
高明劳务派遣至高享受?临颍县畜牧局多项措施确保春节期间畜产品质量安全图
上海十大劳务公司排名【贻知课堂】社工必备技能,如何做好需求评估汽车零部件铸造,工程机械件铸造
艾瑞咨询2021年中国工业品b2b市场研究报告产品实拍图: 企业介绍
<fieldset class="control-group error"> </fieldset>
【靠谱】东明县保安公司服务-青城卫士保安服务福建互联网企业20强揭晓 大咖齐聚论道5G未来发展
长期生产销售冲床配件 转键 可定做各种冲教育行业开发crm客户管理系统PjTime.COM 行业新闻 佳能
全自动印花机|青海印花机|秉正机械设备_印刷机械配件_第一枪香奈儿防护妆前乳系列
销售规格全价格低品质优欢迎实地考察不锈钢(stainlesssteel)指耐空气深圳视频广告视频短片拍摄制作
承接各类玻璃钢冷却塔制造浅析蒸压加气混凝土砌块的制作流程8/03龙力生物功能糖综合研发大楼效果图
廊坊君乐新型建材销售