【发布时间】:2020-01-21 14:20:32
【问题描述】:
我有一个包含 2 个项目的 html 选择,每个项目都应该显示一个 FA 图标,但只有一个项目有效。 两个图标都只有“已售”版本可用 FA5 免费。 将字体系列更改为“Font Awesome 5 Free”,没有帮助,然后没有显示任何图标。
<html>
<head></head>
<body>
<style>
select {
font-family: 'FontAwesome';
}
</style>
<select style='font-weight: 900;'>
<option> Broke</option>
<option> Working</option>
</select>
<br/><br/> Code valid as this shows <i class='fas'></i><br/><br/> But displayed icons have the solid style as free and the other styles are pro only<br /> https://fontawesome.com/icons/graduation-cap?style=solid f19d<br /> https://fontawesome.com/icons/th-large?style=solid
f009<br />
<script defer src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.12.0-1/js/all.js" crossorigin="anonymous"></script>
</body>
</html>
提前致谢
【问题讨论】:
标签: html css font-awesome-5