当前位置:网站首页>Modify placeholder style in input
Modify placeholder style in input
2022-07-27 18:39:00 【mr_ cmx】
Implementation method : Use ::placeholder” Selectors
::placeholder yes css3 New selector , There may be some browser compatibility problems , So it's best to add different prefixes -ms- 、 -webkit- 、-ms- etc.
input::placeholder {
font-weight: 400;
color: #624b2f;
}
//::-webkit-input-placeholder/* WebKit, Blink, Edge */
//:-moz-placeholder/* Mozilla Firefox 4 to 18 */
//::-moz-placeholder /* Mozilla Firefox 19+ */
//:-ms-input-placeholder /* Internet Explorer 10-11 */
//::-ms-input-placeholder /* Microsoft Edge */
So you can set up placeholder Font size of 、 Color style
If wechat applet is modified input in placeholder There are two styles :
1、 Use placeholder-class
wxml in :
<input type="text" placeholder=" Here is placeholder The content of " placeholder-class="placeholderClass"/>
wxss in :
.placeholderClass{
font-weight: 400;
color: #624b2f;
}
2、 Use placeholder-style
wxml in :
<input type="text" placeholder=" Here is placeholder The content of " placeholder-style="color: #624b2f;"/>
It feels like one uses the class name and the other uses the inline style
边栏推荐
- Linked list storage structure of dynamic linked list 2 stack (linkedstack Implementation)
- 解决Jsp级联问题
- [MIT 6.S081] Lec 10: Multiprocessors and locking 笔记
- File path read
- 搭建一个简单的知识问答系统
- JDBC学习 Day1:JDBC
- [MIT 6.S081] Lab 6: Copy-on-Write Fork for xv6
- XML learning Day1: XML / jsup parser / selector /xpath selector
- Nowcoder (5 choices)
- 1. OpenCV image basic operation
猜你喜欢
![[MIT 6.S081] Lec 10: Multiprocessors and locking 笔记](/img/62/ca6362830321feaf450865132cdea9.png)
[MIT 6.S081] Lec 10: Multiprocessors and locking 笔记
![[MIT 6.S081] Lec 1: Introduction and examples 笔记](/img/5d/2fc4bde8eebbb22605d314b5292e05.png)
[MIT 6.S081] Lec 1: Introduction and examples 笔记

Dynamic linked list 4 one-way circular linked list (loopsingle Implementation)

文件路径读取
![[MIT 6.S081] Lab 11: networking](/img/9d/cca59a662412f3c3c57c26c5987a24.png)
[MIT 6.S081] Lab 11: networking

View port PID and end process

1. opencv图片基础操作

Common commands of database 2

MySQL学习 Day1 DDL、DML、DQL基础查询

Chained storage structure of dynamic linked list 3 queue (linkedqueue Implementation)
随机推荐
JDBC learning day1:jdbc
搭建一个简单的知识问答系统
Build a simple knowledge question and answer system
Read only mode of buffer
multi-table query
[MIT 6.S081] Lec 10: Multiprocessors and locking 笔记
Let's move forward together, the 10th anniversary of Google play!
2021.7.12 internal and external connection of notes
[mit 6.s081] LEC 6: isolation & system call entry/exit notes
Deep learning - VIDEO behavior recognition: paper reading - two stream revolutionary networks for action recognition in videos
解决Jsp级联问题
Chained storage structure of dynamic linked list 3 queue (linkedqueue Implementation)
org.apache.catalina.core.StandardContext. startInternal Context [] startup failed due to previous err
2021.7.22笔记 约束
An analysis of CPU explosion of a smart logistics WCS system in.Net
Deep learning: installation package records
[MIT 6.S081] Lec 1: Introduction and examples 笔记
[mit 6.s081] LEC 9: interrupts notes
[MIT 6.S081] Lab 5: xv6 lazy page allocation
Log4j 史诗级漏洞,京东这样的大厂都中招了