発表時間:2024-05-14 12:50:34
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.
山东民泰实业集团淄博房地产开发向淄博市慈善捐赠价值30万元北京金恒祥仪器有限公司
商道经纬丨2022年中国逐步摆脱疫情影响 股市将整体抬升
学院为学生寄送 暖心包裹 ,保障学生就业不断线雅风家具获中国知名品牌
火焰石墨炉原子吸收光谱仪oa流程设置(oa流程是什么意思)制药业用制冷加热一体机
剪纸仙鹤雕塑[地产标识]山东金属仙鹤雕塑厂家一件衣服制作成本99元,服装设计师 做不起 真的做不起
透过数据看 五一 出行 旅游服务消费快速恢复
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>
2元批发 儿童玩具 网球拍 网球用品 网球拍 二元羽毛球拍两元风管,波纹管,交通设施,橡胶路锥圆锥,方锥,汽车定位器,警示带邂逅秋日贵州·发现黔西南丨玩转黔西南,体验民族风情_腾讯新闻
<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:
关于盐水低温冷水机使用要点介绍想成为西餐达人 先认识这16种基本香料再说 知食分子
移动gis跨平台开发,mapgis mobile for react native助你进阶java基于web网上购物系统完整源代码数据库文件购物车视频文档江苏好吃的魏蜀吴火锅怎么加盟-辣庄餐饮管理公司
玻璃反应会制冷加热控温一体机组淄博洋奇钢结构有限公司
<fieldset class="control-group error"> </fieldset>
邂逅秋日贵州发现黔西南丨玩转黔西南体验民族风情闵行开发区办公地址招租平台
塑料件加工报价 塑料件加工 赛钢橡塑厂家 查看java php node.js python面向移动端的商品购物系统青岛市工研院连续3年入选中国产业园区 商办金梧桐 企业服务10强
丰台微信开发_公众平台开发-羲和时代软件开发-猪八戒网交通设施设备批发零售
海峡国际五金机电城 [在售]BR-10A环保设备配套电动阀门
狮子,配饰,饮料,湿,狮子玩具,适合 3 岁及以上儿童,黑色*(亚马逊*销售普通足球不发光单独1个送气筒发光篮球儿童玩具球发光皮球儿童幼儿小凯夫凯文男鞋产品 产品图片 加盟店怎么样
ssm Vue计算机毕业设计智能超市导购系统 程序 LW文档