在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称(OpenSource Name):marella/material-icons开源软件地址(OpenSource Url):https://github.com/marella/material-icons开源编程语言(OpenSource Language):CSS 64.5%开源软件介绍(OpenSource Introduction):material-iconsLatest icon fonts and CSS for self-hosting material design icons.
InstallationInstall the latest version using: npm install material-icons@latest
UsageImport in JS (example: import 'material-icons/iconfont/material-icons.css'; or import in CSS (example: @import 'material-icons/iconfont/material-icons.css'; or import in HTML: <link href="/path/to/material-icons/iconfont/material-icons.css" rel="stylesheet"> To display an icon, use one of the following: <span class="material-icons">pie_chart</span> <!-- Filled -->
<span class="material-icons-outlined">pie_chart</span> <!-- Outlined -->
<span class="material-icons-round">pie_chart</span> <!-- Round -->
<span class="material-icons-sharp">pie_chart</span> <!-- Sharp -->
<span class="material-icons-two-tone">pie_chart</span> <!-- Two Tone --> Reducing Build SizeThe default -import 'material-icons/iconfont/material-icons.css';
+import 'material-icons/iconfont/filled.css';
+import 'material-icons/iconfont/outlined.css'; Show all
Using SassImport in Sass (example: @import 'material-icons/iconfont/material-icons.scss'; Available Sass variables: $material-icons-font-path: './' !default;
$material-icons-font-size: 24px !default;
$material-icons-font-display: block !default; If you are getting errors with webpack or Vue CLI, add this line before importing: $material-icons-font-path: '~material-icons/iconfont/';
Using Angular |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论