我在我的項目中使用了material2和Material圖標。我想知道這些命名圖標如何在瀏覽器中呈現。我已經使用如何在瀏覽器上呈現md圖標
<button md-raised-button><md-icon>mode_edit</md-icon></button>
,並在瀏覽器中,如果我檢查元素
<md-icon class="mat-icon material-icons" role="img" aria-hidden="true">mode_edit</md-icon>
這裏是用來
.mat-icon {
background-repeat: no-repeat;
display: inline-block;
fill: currentColor;
height: 24px;
width: 24px;
}
.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;
}
的類,但我不能瞭解這些圖標在UI上呈現? 我只知道md圖標是矢量圖像的字體圖標。有人能解釋它被渲染的方式嗎?