当前位置:网站首页>About using font icons in placeholder
About using font icons in placeholder
2022-06-28 08:12:00 【Mediocrity and laziness】
stay placeholder Use in iconfont
I wrote a search box when I wrote the page today , The requirement is to change the width and transparency as a module scrolls , among placeholder There is a search sign , This is obviously a Font Icon , So let me talk about how to placeholder Use in iconfont.
1. Use iconfont Of unicode Pattern
There is no need to go into the website to select the icon generation project , I TM Open the whole car directly and give it to ollie !!!
The first is choice Unicode Pattern , Then copy the code .
2. Definition iconfont
Use css Of font-family Attribute defines the font icon , You can choose your own name here , The values in the above figure are the default .
3. Use font icons
<input type="text" class="iconfont-unicode" placeholder=" Please enter the trade name ">
Now you can be happy in placeholder Use font icons in , Here we need to give input Add a class name , The class name is the class name defined in step 2 , And then you find placeholder A font icon appears in the . The following is the result map :
It's perfect Ollie gave !!!
Almost forgot , All the graphs here are truncated iconfont Guidelines on the official website , If you don't understand it, you can go to the official website by yourself .
边栏推荐
- Ambari (IX) --- use expect to realize no interaction in ambri server setup phase (valid for personal test)
- [JS] - [throttling and anti shake function]
- 开户券商怎么选择?网上开户是否安全么?
- Image translation /transformer:ittr: unpaired image to image translation with transformers
- Three step problem of leetcode
- ROS notes (08) - definition and use of service data
- Airflow2.x distributed deployment DAG execution failure log cannot be obtained normally
- 十大券商注册开户靠谱吗?安全吗?
- 【js】-【节流、防抖函数】
- Prometheus deployment alarm docking QQ mailbox
猜你喜欢

SLAM中常用的雅克比矩阵J

B_QuRT_User_Guide(27)

Online WPS tool

Uvcgan: unt vision transformer cycle-consistent Gan for unpropared image-to-image translation

Vagrant installation

SOC clock configuration

asp. Net datalist when there are multiple data displays

Installing mysql5.7 under Windows

Prometheus + grafana + MySQL master-slave replication + host monitoring

asp. Net error "/" server error in the application. String or binary data would be truncated. The statement...
随机推荐
Airflow2.1.1 ultra detailed installation document
Prometheus + grafana + MySQL master-slave replication + host monitoring
B_ QuRT_ User_ Guide(26)
asp. Net datalist when there are multiple data displays
The RAC cannot connect to the database normally after modifying the scan IP. The ora-12514 problem is handled
Installing mysql5.7 under Windows
关于在cmd中MySQL不能插中文数据的原因
Is it reliable for flush to register and open an account? Is it safe?
城联优品向英德捐赠抗洪救灾爱心物资
Little artist huangxinyang was invited to participate in the Wuhan station of children's unit of Paris Fashion Week
Oracle view all tablespaces in the current library
ROS 笔记(08)— 服务数据的定义与使用
SLAM中常用的雅克比矩阵J
MySQL single table access method
券商注册开户靠谱吗?安全吗?
Unity 获取当前物体正前方,一定角度、距离的坐标点
About ASM disk space full, clean up ASM disk
B_ QuRT_ User_ Guide(28)
Ambari (VIII) --- ambari integrated impala document (valid for personal test)
Unity - use of API related to Pico development input system ---c


