我跟着this question有一个占位符在输入的末尾,填补时不会消失(比如Airbnb的登录模式)。字体真棒的unicode不工作在固定的占位符
不过,我使用的字体真棒的统一,并增加了字体系列属性,但它不工作:
.email-container {
width:100%;
position: relative;
float: left;
}
.email-container:after {
position: absolute;
right: 5px;
color:#999999;
top: 10px;
content: '';
font-family: FontAwesome;
}
我
在该行的末尾 我想添加的FA-信封图标。 我在哪里错过了什么?
图标,你想用哪个呢? –
编辑它:我想要fa-envelope图标。它确实存在: fa-envelope [] 括号是否必需?我以前使用Font Awesome的unicodes,没有它,它工作。 https://fortawesome.github.io/Font-Awesome/cheatsheet/ –