我正在测试一些Fontawesome SVG图标,它显示的是白色背景,而不是透明的。如何使其透明?
.menu-sub {
display: flex;
align-items: center;
justify-content: center;
background: #00C4E8;
}
.menu-sub ul li {
list-style-type: none;
}
#font-awesome {
font-size: 40px;
padding: 0px 8px;
}
<body>
<div class="menu-sub">
<ul>
<li id="font-awesome"><i class="fas fa-tags"></i></li>
</ul>
</div>
<script src="https://kit.fontawesome.com/252a8b21e4.js" crossorigin="anonymous"></script>
</body>