【问题标题】:Glyphicons not showing but colleague has the same code字形图标未显示,但同事的代码相同
【发布时间】:2018-09-14 17:25:33
【问题描述】:

我的同事向我发送了这个确切的代码,并且在他的页面上确实显示了图标。 在我的页面上他们没有。但这很奇怪,因为它的代码相同。

<!DOCTYPE html>
<html>

<head>
  <link rel="stylesheet"  href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>

<body>
  <span class="glyphicon glyphicon-home"></span>
</body>

</html>

【问题讨论】:

  • 您的实际问题是什么?请澄清一下。
  • 您当前的链接导入有一些无效的空白字符,请尝试直接从站点替换(复制粘贴)以避免此类错误。
  • @Arvind 打败我

标签: html css glyphicons


【解决方案1】:

您当前的代码有一些无效的空白字符,请尝试直接从站点替换(复制粘贴)以避免此类错误。

<!DOCTYPE html>
<html>

<head>
  <!-- <link rel="stylesheet"  href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"> -->
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>

<body>
  <!-- won't work -->
  <span class="glyphicon glyphicon-home"></span>
    <span class="glyphicon glyphicon-envelope"></span>
    <!-- works fine -->
    <span class="glyphicon glyphicon-home"></span>
</body>

</html>

【讨论】:

    猜你喜欢
    • 2014-05-20
    • 2016-02-03
    • 2017-02-10
    • 2021-07-01
    • 1970-01-01
    • 2022-11-29
    • 1970-01-01
    • 2019-10-20
    • 1970-01-01
    相关资源
    最近更新 更多