目前遇到个需求,需要在伪类中显示icon图,于是就想到了unicode图标 那么怎么将unicode图标引入项目呢? 进入阿里矢量图库: 选一个图标,加入购物车,将图标加入项目 进入项目: 选择unicode下载到本地: 在assets文件夹下创建fonts文件夹;将如下文件复制进去: 在main. Read More
posted @ 2020-11-20 16:12
古墩古墩
Views(1502)
Comments(0)
Diggs(0)
html: <div data-placeholder="模拟placeholder"></div> css: /*为空时显示 element attribute content*/ div:empty:before { content: attr(data-placeholder); /* ele Read More
posted @ 2020-11-20 14:15
古墩古墩
Views(253)
Comments(0)
Diggs(0)

浙公网安备 33010602011771号