gpt4 book ai didi

css - Twitter Bootstrap - Glyphicons

转载 作者:行者123 更新时间:2023-12-01 08:13:39 26 4
gpt4 key购买 nike

我正在使用亚马逊 s3。

我的字形没有显示。

我在头上添加了以下内容

<style>
[class^="icon-"],
[class*=" icon-"] {
display: inline-block;
width: 14px;
height: 14px;
margin-top: 1px;
*margin-right: .3em;
line-height: 14px;
vertical-align: text-top;
background-image: url("https://s3.amazonaws.com/BUCKET/img/glyphicons-halflings.png");
background-position: 14px 14px;
background-repeat: no-repeat;
}

</style>

我以为它会覆盖旧路径,但我仍然看不到字形。

有什么想法吗?

最佳答案

每个 Sprite 都有一个 background-position 它所在的位置,您正在用该样式覆盖它们。由于您只想更改 Sprite 的来源,请使用:

[class^="icon-"],
[class*=" icon-"] {
background-image: url("https://s3.amazonaws.com/BUCKET/img/glyphicons-halflings.png");
}

关于css - Twitter Bootstrap - Glyphicons,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12305688/

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