発表時間:2024-05-14 14:22:55
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.
华硕A65T32KT DR 笔记本产品图片24素材吊车价格汽车吊厂家可上牌照改装汽车起重机
上悬式刮刀下卸料离心机
出口外贸网站基本建设怎样才可以考虑客户需求【治理超限超载】杭后运管所扎实做好道路货物运输车辆源头治超工作_
联想发布新款Yoga平板 Pro款内置投影仪淘宝客app开发外卖uu跑腿同城购物返利商城直播软件定制源码搭建销售智能电流表价格,单相电流表厂家-电力/电工仪器仪表/电流测量仪表
荥阳市毅成重工建筑机械厂华翔机电图高压开关柜开关柜
商城建设电商网站定制开发商城网站制作购物网站制作
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 |
惠普Pavilion Elite m9521cn NC793AA 和惠普Compaq dx2180 RF500PA 的区别和对比零售价:¥面议 宝贝详情 产品货号 品牌 园林绿化苗木花卉芙蓉花,盆栽
<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:
绿水公司开展“绿美惠州 国企先行-- 我为公司添点绿”主题党日活动陕西咸阳 3.0mm舞蹈地板…
原创有机蔬菜水果食品安全营养新鲜果蔬ppt版权可商用水果蔬菜经营的核心是什么?(收藏)_中国零售信息-商业新知江西俊永投资咨询有限公司
攀枝花鋼結構雙層別墅平凉泽臻商贸有限公司
<fieldset class="control-group error"> </fieldset>
制造领域投融资日报9月6日威尔高电子上市戴尔DELLGPU工作站卡死维修经验丰富
CMS LITE 雄迈cms监控软件 v4.00官方版ThinkPadX201 3626F68和索尼S138EC B 黑哪个好高压开关柜手车位置-鄂动机电-宁夏高压开关柜
原料辅料,初加工材料 农产品 绿化苗木 乔木 大量批发栾树|供应温江医院专用地板 商用环保地板…
陕西咸阳 3.0mm舞蹈地板…网络招聘等你简历丨湖北海濎机电科技招聘专场
安全教育 专家道路危险货物运输安全1vcd讲座光盘现货 ap郑州驰华仕科技有限公司阿莫之家影视网站源码全网自动采集带会员系统卡密功能支付接口
货运资格证道路运输从业资格证 - 太原58同城