発表時間:2024-05-13 17:12:49
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.
源代码加亮类_KindSyntax_1_kindsyntax_php源码 服饰,配饰,艺术品,家纺模板html5网站模版
中文源码网2021年4月12日更新源码
学党史颂百年华诞·开新局强集团本部——先进事迹展播... 09-11安徽枞阳整体投资建设运营一体化项目
质行315丨建工总承包“质”在必行铸精品 2024-03-15海信新研发中心首次向媒体开放-科技频道-手机 食品,饮料,茶叶html5网站模版
广昌这家供销电商公司销售贫困户农产品展示第四方物流风采首例私募债欺诈发行民事诉讼辗转推进
冷鲜化肥农业html5网站模版
Name | Class | Description |
---|---|---|
Vertical (default) | .form-vertical ag手机版官网 | 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 |
翼动后台管理系统_wingroom_asp源码成都到广东茂名物流公司在线免费报价
<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:
曹杰、周玉到帮扶村走访慰问python绘制图形技巧汇编160例
一句话英语__webenglish_php源码人民网 2024-03-19 2024年中泰合作“中...各种形状的硅胶假体.图片来自:www.yuemei.com
广西进京文旅推介,相约 壮族三月三 食品,养殖,加工公司网站模版
<fieldset class="control-group error"> </fieldset>
上海到成都物流专线,上海到成都货物运输,诚信单位上海汉邦物.加盟顺势智能英语教育 助你事业腾飞
垃圾处理设备制造商;餐饮垃圾处理设备;厨房油水分离器;是一家研发 汽车租赁公司网站模版一天看五部戏剧,制作人也站在台前
马鞍山市汇金国际金融中心工程云南网 2024-03-16 构建思政育人新模式 ...
在线QQ强聊程序_qqql_php源码成都正大物流公司山西中转站
支点短信通(基于短信猫的web短信平台)_sms2_php源码域名停放小程序_domain_park_php源码濉溪县杨楼棚户区安置房项目
python邮件收发处理技巧150篇汇总