【问题标题】:HTML different button styles - like a gearHTML 不同的按钮样式 - 就像一个齿轮
【发布时间】:2019-04-17 06:55:47
【问题描述】:
【问题讨论】:
标签:
html
angular
electron
【解决方案1】:
您需要在index.html 中加载<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css"> 才能使用像第二个示例中的'fa fa-gear' 这样的字体很棒的类。
【解决方案2】:
Google 自己提供图标列表,尝试使用它。
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<body>
<i class="material-icons">settings</i>
<i class="material-icons" style="font-size:24px;">settings</i>
<i class="material-icons" style="font-size:40px;color:red;">settings</i>
<i class="material-icons" style="font-size:60px;color:green;">settings</i>
</body>
</html>