如何在Bootstrap中使用Glyphicons图标
要在Bootstrap中使用Glyphicons图标,请在代码中的任何位置使用以下代码。在图标和文本之间留出空间以进行适当的填充,例如-
示例
<!DOCTYPE html>
<html>
<head>
<title>Bootstrap Example</title>
<link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet">
<script src = "/scripts/jquery.min.js"></script>
<script src = "/bootstrap/js/bootstrap.min.js"></script>
</head>
<body>
<span class = "glyphicon glyphicon-user"></span>
</body>
</html>您可以尝试运行以下代码来实现Glyphicons图标:
示例
<!DOCTYPE html><html> <head> <title>Bootstrap Example</title> <link href = "/bootstrap/css/bootstrap.min.css" rel = "stylesheet"> <script src = "/scripts/jquery.min.js"></script> <script src = "/bootstrap/js/bootstrap.min.js"></script> </head> <body> <p>The following are the icons:</p> <p> <button type = "button" class = "btn btn-default"> <span class = "glyphicon glyphicon-print"></span> </button> <button type = "button" class = "btn btn-default"> <span class = "glyphicon glyphicon-search"></span> </button> <button type = "button" class = "btn btn-default"> <span class = "glyphicon glyphicon-download"></span> </button> </p> </body></html>
热门推荐
10 新年简短的祝福语爱情
11 职场韩语祝福语大全简短
12 六一祝福语简短感动女生
13 嫂子生日英语祝福语简短
14 英文祝福语简短带名字
15 分手毕业祝福语简短女生
16 毕业男生聚餐祝福语简短
17 中秋祝福语送朋友简短
18 许愿星姐妹祝福语简短