css修改图标字体大小,css

您所在的位置:网站首页 css改变图标大小不变 css修改图标字体大小,css

css修改图标字体大小,css

2023-09-10 23:11| 来源: 网络整理| 查看: 265

css-更改AngularJS材质图标的图标大小

我已经引用然后声明了一个图标

face

但是,如何更改图标大小?

在官方网站[https://design.google.com/icons/]上,我看到他们使用诸如class="md-icon dp48"280之类的类,但在我的情况下不起作用。

9个解决方案

72 votes

通过阅读github中的材料设计,我发现了这些有用的东西可能会对您有所帮助。

/* Rules for sizing the icon. */

.material-icons.md-18 { font-size: 18px; }

.material-icons.md-24 { font-size: 24px; }

.material-icons.md-36 { font-size: 36px; }

.material-icons.md-48 { font-size: 48px; }

/* Rules for using icons as black on a light background. */

.material-icons.md-dark { color: rgba(0, 0, 0, 0.54); }

.material-icons.md-dark.md-inactive { color: rgba(0, 0, 0, 0.26); }

/* Rules for using icons as white on a dark background. */

.material-icons.md-light { color: rgba(255, 255, 255, 1); }

.material-icon



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3