gpt4 book ai didi

css - 如何在 Jumbotron Bootstrap 3 中更改字体粗细

转载 作者:行者123 更新时间:2023-11-28 09:43:12 26 4
gpt4 key购买 nike

如何更改 .jumbotron.jumbotron 中段落的字体粗细?我不希望我的 font-weight 太大。

HTML:

<header>
<div class="container-fluid landing-page">
<div class="jumbotron vertical-center">
<h1>Embroider<span class="eze">eze</span></h1>
<p>Branding <span class="eze">&#9679;</span> Promotional Items <span class="eze">&#9679;</span> Reflective Tape <span class="eze">&#9679;</span> Gifts</p>
</div>
</div>
</header>

CSS:

.jumbotron {
color: #dbdbdb;
background-color: transparent;
text-align: center;
margin-top: 300px;
font-weight: 200;
}

此外,字体大小更改不起作用。

最佳答案

默认情况下,bootstrap 有一些 h1 和 P 的样式。如果你想覆盖试试这个

.jumbotron h1{

font-weight: 800;

}

.jumbotron p{

font-weight: 800;

}

关于css - 如何在 Jumbotron Bootstrap 3 中更改字体粗细,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50630137/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com