gpt4 book ai didi

html - 将字形重新添加回 bootstrap 4.0

转载 作者:太空宇宙 更新时间:2023-11-04 06:59:56 24 4
gpt4 key购买 nike

您好,我使用一个名为 minton 的 bootstrap 主题它使用很棒的字体处理图标。我认为这是 bootstrap 3/4 的事情。

简而言之:This boostrap 4.0 lacks glypicons .我想添加它们。太多的依赖项需要它们。我在字体目录中有 glyphicons 字体

  • asssets/fonts/glyphicons-halflings-regular.eot
  • asssets/fonts/glyphicons-halflings-regular.svg
  • asssets/fonts/glyphicons-halflings-regular.tff
  • asssets/fonts/glyphicons-halflings-regular.woff

bootstrap.min.css 在这里 - asssets/css/bootstrap.min.css

我通过 icons.css(除其他外)将此 css 添加到页面中

@font-face {
font-family: 'Glyphicons Halflings';

src: url('../fonts/glyphicons-halflings-regular.eot');
src: url('../fonts/glyphicons-halflings-regular.eot?#iefix') format('embedded-opentype'), url('../fonts/glyphicons-halflings-regular.woff') format('woff'), url('../fonts/glyphicons-halflings-regular.ttf') format('truetype'), url('../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular') format('svg');
}

但他们没有按要求出现。谁能阐明这一点?

最佳答案

Bootstrap 4 不再有字形,所以如果您使用 boostrap 4,则需要找到另一个解决方案(例如 font-awesome)

您提到了日期选择器库,该库支持 bootstrap 2 和 3,并且提到它被折旧以支持这个:https://eonasdan.github.io/bootstrap-datetimepicker/

最好的办法是替换该组件,而不是尝试改造某些旧库的某些部分以使另一个旧库正常工作,而最终需要更换。你最好早点联系它。无论如何,工作都需要完成,因为我们在某种程度上是面向 future 的。

关于html - 将字形重新添加回 bootstrap 4.0,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52102662/

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