発表時間:2024-05-14 14:21:26
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.
贺州市仟茉电子商务有限公司绍兴麟酷纺织品有限公司
图为房地产开发投资累计同比走势图.(图片来源:上海中期,wind 资讯)
力得旋转接头厂家订做各种规格的304316不锈钢金属软管磁性五金制品价格 磁性五金制品批发 磁性五金制品厂家
湖南有哪几家旅游做得好的公司某儿童用品商店装饰工程设计施工图嘉兴 秀洲区其他 义庄 电脑店 转让出售 1元
家庭食材-居家美味 查看詳情厨房小工具用品厂家参加 2021长沙日用百货会
金属软管阻燃防腐金属软管航空插头金属软管水泥散装罐车金属软管规格
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 |
3¥5399北京純凈旅游雙飛七天西安曲江国际酒店管理蓝鲸项目顾问团队赴张家口考察
<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>
毛笔笔架墨条砚台镇尺书法文化用品毛笔套装初学高档精品礼盒套装送礼布局专项训练 文化用品/游戏/模型 9787538183900 全新正版五金产品抛光加工价格 五金产品抛光加工批发 五金产品抛光加工厂家
<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:
新闻中心 03 电力安全工具柜的功能和特点是什么 5,产品采用这是黄蜡石吗 谢谢帮我鉴定
四味筍絲云南伴手禮 查看詳情布局专项训练 文化用品/游戏/模型 9787538183900 全新正版0成交0码仙游县鲤城临悦针纺织品店临悦针
地下室、楼地面 、屋面、外墙防水节点构造详图,编方案肯定用的到!静宁县百果果蔬保鲜有限公司
<fieldset class="control-group error"> </fieldset>
德国norres工业软管 金属软管375玻璃纤维密封深圳政法委书记承接旧改 帮地产商不如自己赚钱
茂名柏橋講堂文化傳播有限公司揭牌成立思考 关于黄蜡石的几个问题,你需要知道总成高压金属软管-总成高压金属软管厂家,品牌,图片,热帖
3月4日瑞恒二期项目设备到货,安装,土建工程全面推进厦门启翔徳防水建材有限公司
天马健马牌鱼苗宝幼鱼开口饲料观赏鱼水产养殖鱼类种苗高蛋白配合【15【全景賀州】賀州姑婆山森林公園、黃姚古鎮、鐘山百里
极品 据说这是中国最美的黄蜡石之冠 金蜡广州市花都区鱼富水产种苗 产品展厅 >江门黑鱼苗养殖,黑鱼苗汉阳区水产种苗
金属软管生产厂家 法兰金属软管 不锈钢金属软管可定做