发表时间:2022-06-28 22:26:27
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.
这是郭士强执教广州队的第二个赛季。尽管瑞士效仿欧盟采取的对俄制裁措施已经背离其以往的中立政策,但瑞士仍表示,按照中立的立场,不会向冲突地区提供武器。
随后,勒庞承认败选并表示将投入到法国国民议会选举的选战中。
23日,日本一艘载有26人的观光船在北海道知床半岛附近海域失联。资料图:福岛核电站海外网4月4日电当地时间4日晚,日本福岛县、东京都等地接连发生地震,其中最大震级为里氏5.1级。
F-22ABlock20的技术状态只是具备合成孔径能力和电子攻击能力,以及挂载GBU-39小直径制导炸弹进行最基础的对地攻击,并没有完全作战能力,特别是空战能力。根据该公司的声明,这架载有近200名乘客的波音757-200型飞机原计划从盐湖城飞往华盛顿,在飞行约90分钟后达到3万英尺以上的巡航高度,却突然因风挡破裂而被迫临时改道,最终安全降落在丹佛机场。(总台记者马瑾瑾)点击进入专题:2022年法国大选
希望学院以后还能请我参加奥斯卡。一增,指的是本财年美国空军计划采购24架F-15EX。
[环球网快讯]俄罗斯卫星网、塔斯社4月1日消息,俄罗斯联邦侦查委员会称,因涉嫌对顿巴斯地区俄语居民实施种族灭绝,俄方已对22名乌克兰军官提起指控,其中包括多名乌克兰前军方高官,如乌前国防部长瓦列里·格列杰伊和乌前武装力量总参谋长维克托·穆仁科。
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 |
马里乌波尔已被俄罗斯军队包围数周,乌海军陆战队第36旅指挥官谢尔盖·沃利纳20日凌晨在社交媒体上发布的视频中说:敌人的人数是我们的10倍,我们呼吁世界各国领导人帮助我们。决策者们预计,今年还将实施一系列加息,使联邦基金利率到年底时升至接近2%的水平。
<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>
尽管今年上榜者的财富总额达到12.7万亿美元,但较去年的13.1万亿美元有所下降。当天的集会地点位于巴黎近郊楠泰尔的拉德芳斯竞技场。(央视记者许弢)点击进入专题:新闻热点精选。
<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:
昔日奥数四大杯赛之一的学而思杯,也在美国复活。同时,舒尔茨还宣布,星巴克将即刻暂停股票回购计划。
2020年,韩国66岁以上人口的可支配收入为1809万韩元(约合人民币9.46万元),仅为18至65岁人口的55.8%。4月21日,普京在克里姆林宫会见俄罗斯防长绍伊古,绍伊古向普京汇报称,俄罗斯军队和顿涅茨克人民共和国(DPR)军队已经控制了整个马里乌波尔市,但不包括亚速钢铁厂,厂内残余的乌克兰民族主义武装分子和外国雇佣军已被牢牢封锁。美国在北约和欧盟的关系中扮演着领导角色,尽管美国一直否认这一点。
当地时间26日,据多家俄罗斯媒体报道,俄军已控制扎波罗热州南部的瓦西利耶夫卡市,并在市议会大楼升起俄罗斯国旗。东日本铁路公司表示,事件发生在当地时间24日下午14时45分左右,当时这辆北陆新干线列车正从金泽开往东京。
<fieldset class="control-group error"> </fieldset>
在这篇题为俄罗斯外交部:莫斯科不会对欧盟的敌对行动置之不理的报道中,科布里聂茨表示:欧盟的(敌对)行动不会被置之不理。只要队员能吃苦,把更多精力投入到训练,未来提升的空间会非常大,有些人完全具备成为优秀运动员的能力。
投票将在当地时间24日20时,也就是北京时间25日凌晨2时30分结束。上月(3月),瑞士同样拒绝了波兰提出的类似要求。清华2021毕业生去向分布情况来源:清华就业质量报告就业竞争压力下,人才资源开始出现配置。
如果勒庞胜出,她将成为法国首位女总统。这张照片,是古巴的街头。
比如,笔者曾经提到的F-22A布局设计过于紧凑,以至于没有留下太多的升级空间。你们2003年结婚,你从上大学时就认识他。
作为有作品傍身,且国民度高的明星夫妇,陶虹徐峥在坊间的口碑一向不错如此完美的境界不是借助某些额外的手段和操作能够达到的。第一个目标已经实现,第二个目标也在稳步推进当中。
他指出,没有价格稳定,经济就无法运转。