我正在尝试在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>
这就是我得到的 -
答案 0 :(得分: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>
结果: