発表時間:2024-05-14 10:02:29
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.
四川吕聚旅居养生产业发展有限公司美观的成都别墅庭院融入智能元素,哪款是你的菜
悬浮式拼装运动地板案例sport courts gallery
连云港华玉信息科技有限公司县市政工程建设维护管理所9月30日工作简报 写美篇 巡查城区市政设施
敏思达电商配送系统最强大的短距离物流配送软件我国橡胶制品销售收入市场规模均小幅上升轮胎产品占主流市场戴尔电脑售后维修服务中心
上海打井,上海机械打井,上海建筑工地打井赞连云港这三个地方全部成功入围
倡导健康中国"绿生活",中儒通航打造绿色通航 |
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 |
喜报!喜报! “浙江省百强旅行社”海中洲国旅榜上有名!近日,多家生猪养殖上市公司发布5月份销售数据,头部猪企生猪,商品猪
<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>
奇妙的纺织品原材料菠萝的叶子居然可以做皮衣双语阅读【肉类杀菌锅、鸡肉杀菌锅 、鸡爪杀菌锅价格鸭肉杀菌锅厂家】-图 成都零起飞网络网站制作只需2480元,全包 成都网站建设推广
<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:
综合支队多措并举加强散装货物运输车辆遗撒污染路面行为查处力度日照市盛丰橡塑制品加工销售各种橡胶制品,欢迎致电咨询合作.
90度短半径不锈钢弯头产品销售分析系统案例.part2.rar成都前端学习路线 web前端完整学习路线
锐安木炭烘干机9000元 9000元鹏福特推荐商家 休闲食品油炸机 全自动油炸机
<fieldset class="control-group error"> </fieldset>
各种规格橡胶垫 防滑固定橡胶垫圈 网格橡胶垫 橡胶制品专业中国石油再获高效发现成果 新疆玛湖单井日产油首破400方
不锈钢弯头辨别方法及安装技巧 2016-11-03喜报!什邡通用机场军地协议正式签订周转箱加厚特大号斜插式物流箱超市配送箱翻盖收纳箱塑料箱塑料
周转箱加厚特大号斜插式物流箱超市配送箱翻盖收纳箱塑料箱塑料一个食品制造企业线上电商代运营整体方案 27页PPT
夹布橡胶管高压橡胶管高温黑胶管皮管四分六分一寸两寸喷沙管水管不锈钢非标定制金库门
航展要来啦!中国国际通用航空博览会落户栾城区本网应邀参加全国网媒年会 共商技术创新与合作饰品创业 | 同款产品怎么和别家与众不同_创业_配饰_引流_摄影_装修
绍兴县迪标纺织品是一家集研发,生产,加工,销售维一体的纺织品有限