【发布时间】:2018-07-04 10:37:26
【问题描述】:
如果我在此选择器上应用任何 CSS 规则,而在 Chrome 上,我的 MaterialIcons-Regular 图标会消失或分解成两个不同的图标。
*:first-letter {
color: #000
}
知道这里可能有什么问题吗?
想看看我的意思吗?在 Firefox 和 Chrome 中打开的链接: https://jsfiddle.net/z7xmf81u/
<!DOCTYPE html>
<html>
<head>
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons">
</head>
<style>
*:first-letter {color: blue;}
h1 {color: blue;}
p {color: red;}
</style>
<body>
<p>test</p>
<i class="material-icons">cloud</i>
<i class="material-icons" style="font-size:48px;">cloud</i>
<i class="material-icons" style="font-size:60px;color:red;">cloud</i>
<i class="material-icons" style="font-size:60px;color:red;">network_check</i>
</body>
</html>
你可以删除
*:首字母{颜色:蓝色;}
随意排队。
感谢任何解决方法,谢谢
【问题讨论】:
标签: css google-chrome google-material-icons