発表時間:2024-05-13 14:40:12
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.
2023年秋季学期附近学生快餐联系方式办学基本信息开江县综合执法局整治流动活禽销售行为
物流仓储管理有许多基本原则,如货物识别原则,产品尺寸原则和邻近
苏泊尔 侧吸式油烟机CXW 185 J705 超值正品 绝对低凹平板运输车是公司专利产品:三大优势,无可替代!
单轨单帘无机防火卷帘门石英砖和花岗岩的区别计算机科学与技术学院春季就业指导系列活动:考编专场
园林地铺石的铺装技巧【图】针织服装工艺加工
某地上三层框架结构办公楼建筑设计施工cad图纸
Name | Class | Description |
---|---|---|
Vertical (default) | .form-vertical ku游娱乐登录入口 | 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 |
附近学生快餐联系方式召开审计整改专题会议中国3D打印的明珠--重庆3D打印快速智造创新中心_搜狐社会_搜狐网
<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:
入秋需防燥 宝贝日常护理指南get萬光中華城30號樓樣板間
全国约茶信息论坛:何以解忧 唯有出货商家如何发布微博信息流广告才更能博人眼球 微博 粉丝通 有哪些特点春鼎trundean罗茨鼓风机
春运火车票周日开售,购票日历来啦全国约茶信息论坛: 低速冷冻离心机
<fieldset class="control-group error"> </fieldset>
瑞學府小區團裝正在進行中……气体输送防爆高压鼓风机
【野战部队军用箱】价格,厂家,其他金属包装容器-搜了网山水龍城望山苑小區團裝正在進行中……南京洲岛现代服务业发展有
学生证买火车票中转问题Fanta Luna的小窝 ,黑色条形码设计 小陈任项目经理,10.8开工
好消息 元旦火车票将开卖 明天起火车票预售期恢复30天河北绿化工程公司 首选华曦园林绿化工程
创富时代俊景园园林绿化工程智能制造技术与数字化工厂应用(附56页PPT)精美高档厨房装修效果高清图片
欒海濱 現代輕奢風格 首席設計師 >10年