我连接材质图标:<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet">
我想让CSS图标变小:
.material-symbols-outlined {
font-variation-settings:
'FILL' 0,
'wght' 100,
'GRAD' -25,
'opsz' 20
}
我用:<span class="material-symbols-outlined">search</span>
但使用的是常规图标,为什么?
应该是这样的:
但它是这样应用的:
.material-symbols-outlined {
font-variation-settings: 'FILL' 0, 'wght' 100, 'GRAD' -25, 'opsz' 20
}
<link href="https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined" rel="stylesheet">
<span class="material-symbols-outlined">search</span>