light:$font-weight-light,lighter:$font-weight-lighter,normal:$font-weight-normal,bold:$font-weight-bold,bolder:$font-weight-bolder)),"line-height":(property:line-height,class:lh,values:(1:1,sm:$line-height-sm,base:$line-height-base,lg:$line-height-lg,)),"text-align":(responsive:true...
2.加粗字体【font-weight】:将【font-weight】设置为【bold】,以加粗文字,该属性可继承 3.倾斜字体【font-style】:将【font-style】设置为【italic】,以倾斜文字,该属性可继承 4.字间距【letter-spacing】:设置【letter-spacing】的值为px或em,可控制文字间的间隙,该属性可继承 5.首行缩进【text-indent】:可...
$alert-padding-y:$spacer;$alert-padding-x:$spacer;$alert-margin-bottom:1rem;$alert-border-radius:$border-radius;$alert-link-font-weight:$font-weight-bold;$alert-border-width:var(--#{$prefix}border-width);$alert-bg-scale:-80%;$alert-border-scale:-70%;$alert-color-scale:40%;$alert-...
UsingRTLCSS value directives, you can make a variable output a different value for RTL. For example, to decrease the weight for$font-weight-boldthroughout the codebase, you may use the/*rtl: {value}*/syntax: $font-weight-bold:700#{/* rtl:600*/}!default; ...
font-size: 36px; margin-top: 20px; margin-bottom: 10px; font-family: inherit; font-weight: 500; line-height: 1.1; color: inherit; } 【small】 在标题内还可以包含<small>标签或赋予.small类的元素,可以用来标记副标题。<small>标签和.small类的元素的样式相同 ...
粗体就是给文本加粗,在普通的元素中我们一般通过font-weight设置为bold关键词给文本加粗。在Bootstrap中,可以使用<b>和<strong>标签让文本直接加粗。 /*源码查看bootstrap.css文件第55行~第58行*/ b,strong { font-weight: bold; /*文本加粗*/ } 例如,下面的代码使用<strong>标签定义了强调文本: <p>我在...
<p class="font-montserrat font-medium text-xs tracking-[.5em] uppercase text-stormGray mb-3"> Perfume </p> <h1 class="font-fraunces text-3xl font-bold text-ebonyClay mb-4"> Gabrielle Essence Eau de Parfum </h1> <p class="font-montserrat font-medium text-sm text-stormGray mb-6"...
Added.fsutilities forfont-size Renamedfont-weightutilities to.fw Added.rounded-1,.rounded-2, and.rounded-3for new small, medium, and largeborder-radiusutilities Added.overflow-visibleand.overflow-scrollutilities Check out theMigration guideandutilities documentationfor more details. ...
nav > li > a { padding: 5px 15px; } .nav .active > a{ color: #f00; border-left: 1px solid #f00; } .nav .active .bold{ font-weight: bold; border-left: 3px solid #f00; font-size: 20px; } </style> <div class="container"> <div class="row"> <!-- 这里给个padding值...
Normal weight text. Light weight text. Lighter weight text (relative to the parent element). Italic text. Copy <pclass="font-weight-bold">Bold text.</p><pclass="font-weight-bolder">Bolder weight text (relative to the parent element).</p><pclass="font-weight-normal">Normal weight text...