.mui-input-row.select::before{
content: '\e581';
position: absolute;
top: 50%;
right: 14px;
display: inline-block;
font-family: Muiicons;
font-size: 20px;
line-height: 1;
color: #bbb;
text-decoration: none;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
-webkit-font-smoothing: antialiased
}
使用正常!但是要是不小心出现空格:
.mui-input-row.select ::before{
content: '\e581';
position: absolute;
top: 50%;
right: 14px;
display: inline-block;
font-family: Muiicons;
font-size: 20px;
line-height: 1;
color: #bbb;
text-decoration: none;
-webkit-transform: translateY(-50%);
transform: translateY(-50%);
-webkit-font-smoothing: antialiased
}
则会将伪元素自动添加到该元素的第一个子元素内!