html中i标签控制图标大小,直接使用i标签 class加入 material-icons属性
或者自定義demo.css文件 寫入如下內(nèi)容:@font-face {
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(https://fonts.gstatic.com/s/materialicons/v43/flUhRq6tzZclQEJ-Vdg-IuiaDsNc.woff2) format('woff2');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px;
line-height: 1;
letter-spacing: normal;
text-transform: none;
display: inline-block;
white-space: nowrap;
word-wrap: normal;
direction: ltr;
-webkit-font-feature-settings: 'liga';
-webkit-font-smoothing: antialiased;
}
引入demo.css文件或者引入 剛剛你下載的文件 或者直接引入
2. 進入網(wǎng)址選適合你的icon
3.直接使用i標簽 class加入 ?material-icons屬性 ?assignment_ind 替換你選的icon名稱即可
assignment_ind
總結(jié)
以上是生活随笔為你收集整理的html中i标签控制图标大小,直接使用i标签 class加入 material-icons属性的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 通过Chrome实时调试webview
- 下一篇: ocp跟oce的区别 oracle_六种