0

我正在尝试在 Materialise 的按钮中使用 Ionicons,但它没有出现,而是我得到了一个奇怪的框。

<!DOCTYPE html>
<html lang="en">

<head>
    <title>Materialize</title>
    <link rel="stylesheet" type="text/css" href="css/materialize.min.css">
    <link rel="stylesheet" type="text/css" href="css/ionicons.min.css">
    <meta name="viewport" content="width=device-width,initial-scale=1.0" />
</head>

<body>
    <script type="text/javascript" src="https://code.jquery.com/jquery-
    2.1.1.min.js"></script>
    <script type="text/javascript" src="js/materialize.min.js"></script>
    <a class="btn btn-floating btn-large cyan pulse"><i class="ion-social-
    facebook"></i></a>
    <a class="btn btn-floating btn-large cyan pulse"><i class="ion-social-
    twitter"></i></a>
</body>

<html>

这就是我得到的 -

在此处输入图像描述

4

1 回答 1

1

请告诉我,您实际上并没有在类名中间拆分行...并且您希望一切正常...

<!DOCTYPE html>
<html lang="en">
<head>
  <title>Materialize</title>
  <link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/materialize/1.0.0-alpha.3/css/materialize.min.css">
  <link rel="stylesheet" type="text/css" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">

  <meta name="viewport" content="width=device-width,initial-scale=1.0" />
</head>

<body>
  <script type="text/javascript" src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
  <script type="text/javascript" src="js/materialize.min.js"></script>
  <a class="btn btn-floating btn-large cyan pulse"><i class="ion-social-facebook"></i></a>
  <a class="btn btn-floating btn-large cyan pulse"><i class="ion-social-twitter"></i></a>
</body>

结果:

在此处输入图像描述

于 2018-02-02T19:18:33.290 回答