【发布时间】:2019-11-08 18:57:50
【问题描述】:
我想用 Google Materials SVG 图标替换 FontAwesome 图标,在按下可折叠表格按钮后(从向下箭头到向上箭头)。当前代码是这样的。我无法让 Google Material Icons 代码正常工作。我该如何解决这个问题?
应该像这样工作,除了谷歌图标:
https://codepen.io/tofanelli/pen/waadRY
字体真棒
.card-header .accordion-toggle:after {
font-family: 'Glyphicons Halflings';
content: "\e114";
float: right;
color: grey;
}
.card-header .accordion-toggle.collapsed:after {
content: "\e113";
}
Google Material 图标:
.card-header .accordion-toggle:after .material-icons{
content: "\e5cf";
float: right;
color: grey;
}
etc
切换按钮的图片示例:
【问题讨论】:
标签: javascript html css twitter-bootstrap material-ui