gpt4 book ai didi

css - 为什么我的 glyphicon 铅笔很胖

转载 作者:行者123 更新时间:2023-11-28 16:37:00 25 4
gpt4 key购买 nike

<h1 class="h1name" style="" ><bold><%= @user %></bold><span class="glyphicon glyphicon-pencil" aria-hidden="true"></span></h1>

Fat glyphicon

Desired Glyphicon

我不知道为什么我得到的是粗的 glyphicon-pencil,而不是 Bootstrap Components 网站上看到的正确铅笔。 http://getbootstrap.com/components/#glyphicons-how-to-use

 gem 'twitter-bootstrap-rails'

是我在 ruby​​ on rails 元素上使用的 Bootstrap 版本吗

我正在使用 roboto 字体

<link href='https://fonts.googleapis.com/css?family=Roboto:400,700' rel='stylesheet' type='text/css'>

另一个带有信封字形的示例

fat envelope

correct envelope

没有 roboto 字体它看起来像这样(仍然与所需的有很大不同) enter image description here

最佳答案

我遇到了同样的问题,我尝试用cdn路径替换本地文件。并且有效。

<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">

<!-- Optional: Include the jQuery library -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Optional: Incorporate the Bootstrap JavaScript plugins -->
<script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>

关于css - 为什么我的 glyphicon 铅笔很胖,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34348993/

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