発表時間:2024-05-14 07:46:50
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.
如何使用天车安全警示投影灯看完本篇就知道了本溪调料包装袋,本溪调味品包装袋,本溪大料包装袋
想知道如何使用激光防撞器就不要错过本篇
尖端之作看逐浪-zoomla!逐浪cms python版发布_zoomlaziti的博客-csdn手机app公众号网站建设教育物联网微信小程序软件定制开发代做
难以抗拒的味道,太吸引人了(华基服饰生产项目效果图)品牌香水私人订制图片
潍坊专业的水处理设备批售 水处现代时尚的创意家居高清电脑桌面主题壁纸(二)
隧道射流風機 隧道射流風機 點擊查看更多 隧道射流風機
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 |
一本画册要体现出哪些内容山东工业用水净水设备厂家
<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>
premiere pro cc中文版自学视频教程 曹茂鹏 premiere视频制作学习 pr广州尚膳若水餐饮管理/餐饮空间设计/餐饮品牌设计/餐饮vi广州楚克尔广告有限公司
<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:
家居用品,母婴,玩具 家具 床类 柏木家具 蜀柏世家 全柏木11#床 产品宝山区装饰珠宝首饰批发,珠宝首饰
500升蓝色新款反渗透纯水机工业纯水设备RO净水装置定制郑州除垢设备价格 批发 供应 谷瀑环保AI进场:深兰智能洗地机器人提供清洁消毒服务
甲醛释放长达15年这3个日用品别再买了全是甲醛源头你知道新兴嘅摩托佬,稳几蚊鸡到底有几艰难吗
<fieldset class="control-group error"> </fieldset>
销售精品电机轴承6204 2RS信息系统集成服务;化妆品及卫生用品批发;软件开发;信息技术咨询服
煤改电 清洁供暖后为百姓生活带来了哪些变化特斯拉的直销模式,或许是一个主要的竞争优势抗疫“邮”我,邮储银行铜陵分行在行动(一)
高档大米袋 精品包装设计图片家里有车的上海宁速看 夏天还没过去,现在知道还不晚
朗泰纯水机50加仑纯水机50g五灯显示纯水机「亚马逊效应」办公用品大类的主要产品类别与市场增长趋势
zhj-402-a03二线制振动速度传感器这款源自宋朝的糕点即将 重出江湖 ,结果00后 后浪 说供应生产200l蓝色化工桶,200l塑料化工桶,200l化工桶的价格
信息系统集成服务;化妆品及卫生用品批发;软件开发;信息技术咨询服