css - 如何在 Jumbotron Bootstrap 3 中更改字体粗细
问题描述
如何更改中的.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">●</span> Promotional Items <span class="eze">●</span> Reflective Tape <span class="eze">●</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;
}
推荐阅读
- riscv - 我们现在有 RISC-V 矢量指令的编译器吗?
- grails - 嵌套闭包无法访问私有静态字段
- c# - 如何触发从 bot 到 Skype 用户的新对话?不确定在 Skype 频道的 id 参数中发送什么
- vb.net - 如何从父文本框中获取 FK 以在子数据网格中使用
- c# - 当鼠标悬停在某个文本上时更改字体,然后恢复。(事件处理程序)
- haskell - 多态模式匹配导致类型不明确
- java - Itext7 - 在单个 pdf 上编写多个文档
- listview - 滚动时如何防止分组的Listview子项折叠
- tcp - 我从客户端接收数据,但客户端只能在 localpc 上从服务器读取数据,为什么?
- java - 从 tomcat 8 迁移到码头服务器