简体   繁体   中英

Change size of regular font (e.g. in paragraph or link) with bootstrap?

I can see the very useful fs-* classes here :

在此处输入图像描述

The problem I have is these only apply to h1 down to h6, but no smaller.

Eg I can't change the size (smaller) of regular text inside <p> tags or in on a bootstrap link eg <p class="link-secondary">Very Small Link</p> .

Is there a way to change the font size of regular text (not headers) using bootstrap?

I found a way: use bootstrap's typography inline elements . Example

<p>Regular text</p>
<p class="small">Smaller text</p>

在此处输入图像描述

From the bootstrap docs:

(The 'small' class) is meant to be treated as fine print.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM