在上篇文章给大家介绍了BootStrap3学习笔记(一)之网格系统
对于标题,Bootstrap已经修改了h1--h6的样式,如果需要副标题,还可以在其中使用small标记
<h1>h1. Bootstrap heading <small>Secondary text</small></h1> <h2>h2. Bootstrap heading <small>Secondary text</small></h2> <h3>h3. Bootstrap heading <small>Secondary text</small></h3> <h4>h4. Bootstrap heading <small>Secondary text</small></h4> <h5>h5. Bootstrap heading <small>Secondary text</small></h5> <h6>h6. Bootstrap heading <small>Secondary text</small></h6>
如果页面中有一个需要与众不同的h1,则可以将其包含在样式为“page-header的div中。
<div class="page-header"> <h1>Twitter Bootstrap <small>An intuitive front-end framework</small></h1> </div>
Bootstrap默认字体大小为14px,行高1.428,段落间距10px,如果某个段落需要醒目一点,可是有'lead'类
使用text-*类,可以很方便的设定文本的水平对齐方式
<p class="text-left">Left aligned text.</p> <p class="text-center">Center aligned text.</p> <p class="text-right">Right aligned text.</p> <p class="text-justify">Justified text.</p> <p class="text-nowrap">No wrap text.</p>
HTML中的文字格式标记在Bootstrap中都可以使用
<p><b>This is bold text</b></p> <p><big>This is big text</big></p> <p><code>This is computer code</code></p> <p><em>This is emphasized text</em></p> <p><i>This is italic text</i></p> <p><mark>This is highlighted text</mark></p> <p><small>This is small text</small></p> <p><strong>This is strongly emphasized text</strong></p> <p>This is <sub>subscript</sub> and <sup>superscript</sup></p> <p><ins>This text is inserted to the document</ins></p> <p><del>This text is deleted from the document</del></p>
字母格式转换类可以很好的完成需要的转换:
<p class="text-lowercase">The quick brown fox jumps over the lazy dog.</p> <p class="text-uppercase">The quick brown fox jumps over the lazy dog.</p> <p class="text-capitalize">The quick brown fox jumps over the lazy dog.</p>
颜色是传递内容重要性的有力方式,Bootstrap提供了便利的设定文字强调级别的类:
<p class="text-muted">Muted: This text is grayed out.</p> <p class="text-primary">Important: Please read the instructions carefully before proceed.</p> <p class="text-success">Success: Your message has been sent successfully.</p> <p class="text-info">Note: You must agree with the terms and conditions to complete the sign up process.</p> <p class="text-warning">Warning: There was a problem with your network connection.</p> <p class="text-danger">Error: An error has been occurred while submitting your data.</p>
对引用内容也做了修饰:
<blockquote class="pull-right"> <p>The world is a dangerous place to live; not because of the people who are evil, but because of the people who don't do anything about it.</p> <small>by <cite>Albert Einstein</cite></small> </blockquote>
其中的类是为了右对齐引用。
以上所述是小编给大家介绍的Bootstrap3学习笔记(二)之排版的相关知识,希望对大家有所帮助,如果大家有任何疑问请给我留言,小编会及时回复大家的。在此也非常感谢大家对网站的支持!
bootstrap3排版
免责声明:本站文章均来自网站采集或用户投稿,网站不提供任何软件下载或自行开发的软件! 如有用户或公司发现本站内容信息存在侵权行为,请邮件告知! 858582#qq.com
《魔兽世界》大逃杀!60人新游玩模式《强袭风暴》3月21日上线
暴雪近日发布了《魔兽世界》10.2.6 更新内容,新游玩模式《强袭风暴》即将于3月21 日在亚服上线,届时玩家将前往阿拉希高地展开一场 60 人大逃杀对战。
艾泽拉斯的冒险者已经征服了艾泽拉斯的大地及遥远的彼岸。他们在对抗世界上最致命的敌人时展现出过人的手腕,并且成功阻止终结宇宙等级的威胁。当他们在为即将于《魔兽世界》资料片《地心之战》中来袭的萨拉塔斯势力做战斗准备时,他们还需要在熟悉的阿拉希高地面对一个全新的敌人──那就是彼此。在《巨龙崛起》10.2.6 更新的《强袭风暴》中,玩家将会进入一个全新的海盗主题大逃杀式限时活动,其中包含极高的风险和史诗级的奖励。
《强袭风暴》不是普通的战场,作为一个独立于主游戏之外的活动,玩家可以用大逃杀的风格来体验《魔兽世界》,不分职业、不分装备(除了你在赛局中捡到的),光是技巧和战略的强弱之分就能决定出谁才是能坚持到最后的赢家。本次活动将会开放单人和双人模式,玩家在加入海盗主题的预赛大厅区域前,可以从强袭风暴角色画面新增好友。游玩游戏将可以累计名望轨迹,《巨龙崛起》和《魔兽世界:巫妖王之怒 经典版》的玩家都可以获得奖励。