<p class="lead"> This is a lead paragraph. It stands out from regular paragraphs. </p>
行內文本元素
<s>、<u> 標籤大部分已被棄用,雖然他的與<del>、<ins>效果相同。
1 2 3 4 5 6 7 8 9 10 11
<p>You can use the mark tag to <mark>highlight</mark> text.</p>
<p><del>This line of text is meant to be treated as deleted text.</del></p> <p><s>This line of text is meant to be treated as no longer accurate.</s></p>
<p><ins>This line of text is meant to be treated as an addition to the document.</ins></p> <p><u>This line of text will render as underlined.</u></p>
<p><small>This line of text is meant to be treated as fine print.</small></p> <p><strong>This line rendered as bold text.</strong></p> <p><em>This line rendered as italicized text.</em></p>
<blockquoteclass="blockquote"> <p>A well-known quote, contained in a blockquote element.</p> </blockquote>
引用來源
有大小字之分的引用來源
1 2 3 4 5 6 7 8
<figure> <blockquoteclass="blockquote"> <p>A well-known quote, contained in a blockquote element.</p> </blockquote> <figcaptionclass="blockquote-footer"> Someone famous in <citetitle="Source Title">Source Title</cite> </figcaption> </figure>
對齊
left => start
right => end
1 2 3 4 5 6 7 8 9
<!-- text-end 定位在後方 --> <figureclass="text-center"> <blockquoteclass="blockquote"> <p>A well-known quote, contained in a blockquote element.</p> </blockquote> <figcaptionclass="blockquote-footer"> Someone famous in <citetitle="Source Title">Source Title</cite> </figcaption> </figure>
列表
無樣式
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<ulclass="list-unstyled"> <li>This is a list.</li> <li>It appears completely unstyled.</li> <li>Structurally, it's still a list.</li> <li>However, this style only applies to immediate child elements.</li> <li>Nested lists: <ul> <li>are unaffected by this style</li> <li>will still show a bullet</li> <li>and have appropriate left margin</li> </ul> </li> <li>This may still come in handy in some situations.</li> </ul>
行內
1 2 3 4 5
<ulclass="list-inline"> <liclass="list-inline-item">This is a list item.</li> <liclass="list-inline-item">And another one.</li> <liclass="list-inline-item">But they're displayed inline.</li> </ul>
描述型列表對齊
本段主要使用格線系統進行排版,建議等熟悉格線系統後再來回顧練習。
1 2 3 4 5 6 7 8 9 10 11 12 13 14
<dlclass="row"> <dtclass="col-sm-3">Description lists</dt> <ddclass="col-sm-9">A description list is perfect for defining terms.</dd>
<dtclass="col-sm-3">Term</dt> <ddclass="col-sm-9"> <p>Definition for the term.</p> <p>And some more placeholder definition text.</p> </dd>
<!-- 加入 text-truncate 避免文字過長 --> <dtclass="col-sm-3 text-truncate">Truncated term is truncated</dt> <ddclass="col-sm-9">This can be useful when space is tight. Adds an ellipsis at the end.</dd> </dl>