- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我正在尝试让 Font Awesome 图标看起来更 slim https://jsfiddle.net/cliffeee/7L6ehw9r/1/ .
我尝试使用“-webkit-text-stroke”,但将鼠标悬停在图标上时没有帮助,因为您可以看到背景颜色,而我不希望它被看到。
.accordion-toggle {
background-color: #777;
color: white;
cursor: pointer;
padding: 18px;
width: 100%;
border: none;
text-align: left;
outline: none;
font-size: 15px;
}
.collapsed, .accordion-toggle:hover {
background-color: #555;
}
.accordion-toggle:after {
-webkit-text-stroke: 2px #eee; // Icons thinner not working
font-family: 'FontAwesome'; /* essential to enable caret symbol*/
content: "\f067";
color: white;
font-weight: bold;
float: right;
margin-left: 5px;
margin-right: 30px;
}
.collapsed:after {
content: "\f068";
}
.collapse {
padding: 0 18px;
max-height: 0;
overflow: hidden;
transition: max-height 0.2s ease-out;
background-color: #f1f1f1;
}
最佳答案
不,你不能让 font awesome 图标看起来更细,但你使用的 +
图标已经是 font awesome 的默认粗细。
您正在 .accordion-toggle:after
类中应用 font-weight: bold;
。使其成为 font-weight: normal;
它会将您的图标更改为正常厚度。
您可以通过应用 font-weight: bold;
来增加 font awesome 的粗细度,但是您不能使用 font-weight: lighter;
来减少它。
谢谢你...
关于css - 有没有办法使用 CSS 使字体很棒的图标看起来更薄/更 slim ?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57882784/
关闭。这个问题需要debugging details .它目前不接受答案。 编辑问题以包含 desired behavior, a specific problem or error, and t
我正在开发一个 rdp 虚拟 channel 应用程序。我已经在注册表中注册了客户端 dll 并试图理解,客户端 dll 已加载。但是当从 pEntryPoints 调用 pVirtualChanne
是否可以通过 GPRS(USB 棒)绑定(bind)(聚合)多个连接并将其用作 Linux 中的一个链接? 最佳答案 技术上是可行的。 Linux 有一个名为 bonding 的模块它可以将多个接口(
我的主容器 div 可以刷新,所以它的内容被隐藏/显示。当我的容器 div 隐藏时,我的页脚会弹出。 html 结构如下所示: 注意我已经试过了: 而且它似乎不起作用,当隐藏容器 div 时,页脚 d
我有一个问题,我可以使用 wpa_suppli 进行无线连接 cant on some network, but i need to connect on a network where the SS
我是一名优秀的程序员,十分优秀!