当前位置:网站首页>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 .
边栏推荐
- Software design of resistance test board
- Ambari (V) ---ambari integrated Azkaban (valid for personal test)
- 三角变换公式
- The RAC cannot connect to the database normally after modifying the scan IP. The ora-12514 problem is handled
- asp. Net to search products and realize paging function
- Three step problem of leetcode
- Is it reliable for securities companies to register and open accounts? Is it safe?
- 【js】-【DFS、BFS应用】-学习笔记
- 券商注册开户靠谱吗?安全吗?
- Configuring MySQL multi instance master-slave synchronization for Linux
猜你喜欢

Introduction to kubernetes (I)

2022第六季完美童模 佛山赛区 初赛圆满落幕

Introduction to Devops Basics

HJ prime factor

Devops Basics: Jenkins deployment and use (I)

SQL Master slave Replication Build

Configuring multiple instances of MySQL under Linux

Prometheus deployment alarm docking QQ mailbox

Activity implicit jump

AI首席架构师8-AICA-高翔 《深入理解和实践飞桨2.0》
随机推荐
Do you know TCP protocol (2)?
Ambari (IX) --- use expect to realize no interaction in ambri server setup phase (valid for personal test)
Generation and verification of JWT token
【学习笔记】最短路 +生成树
Is it reliable to open a new bond registration account? Is it safe?
LeetCode之三步问题
MySQL implements transaction persistence using redo logs
NLP sequence can completely simulate human brain intelligence
Configuring MySQL multi instance master-slave synchronization for Linux
Devops foundation chapter Jenkins deployment (II)
Is it reliable for securities companies to register and open accounts? Is it safe?
软件测试与质量期末复习
Redis cluster deployment and application scenarios
Helloword routine for ROS
ROS 笔记(08)— 服务数据的定义与使用
At 19:00 on Tuesday evening, the 8th live broadcast of battle code Pioneer - how to participate in openharmony's open source contribution in multiple directions
MySQL tablespace parsing
How to insert a single quotation mark into a table as a data type in Oracle pl/sql
【学习笔记】模拟
Chenglian premium products donated love materials for flood fighting and disaster relief to Yingde


