当前位置:网站首页>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
边栏推荐
- Navicat 导出表生成PDM文件
- Deep learning - VIDEO behavior recognition: paper reading - two stream revolutionary networks for action recognition in videos
- uniapp运行到手机(真机调试)
- [mit 6.s081] LEC 8: page faults notes
- Preliminary introduction to C miscellaneous lecture linked list
- MySQL查询列必须和group by字段一致吗?
- MySQL basic statement
- 2021.7.22笔记 约束
- [MIT 6.S081] Lec 3: OS organization and system calls 笔记
- pandas的to_sql函数使用
猜你喜欢
![[MIT 6.S081] Lab 11: networking](/img/9d/cca59a662412f3c3c57c26c5987a24.png)
[MIT 6.S081] Lab 11: networking

Deep learning: gat

Deep learning: Gan optimization method dcgan case

MySQL学习 Day1 DDL、DML、DQL基础查询
![[MIT 6.S081] Lab 9: file system](/img/f5/ea30b1fe5b6d73c86f2509c690ca20.png)
[MIT 6.S081] Lab 9: file system

2021.7.30 note index

Linked list storage structure of dynamic linked list 2 stack (linkedstack Implementation)

2021.8.7笔记 servlet
![[MIT 6.S081] Lec 1: Introduction and examples 笔记](/img/5d/2fc4bde8eebbb22605d314b5292e05.png)
[MIT 6.S081] Lec 1: Introduction and examples 笔记

Visual Studio Code安装教程(超详细)
随机推荐
Graphical interface programming
输入框blur事件与click事件冲突问题
2021.8.9笔记 request
Preliminary introduction to C miscellaneous lecture linked list
Labels such as {@code}, {@link} and < P > in the notes
常用词词性表
2021.7.31笔记 视图
RSA encryption and decryption (compatible with wechat applet environment)
[mit 6.s081] LEC 8: page faults notes
[MIT 6.S081] Lec 8: Page faults 笔记
2. Change color space and color detection
Common commands of database 2
[MIT 6.S081] Lab 11: networking
An analysis of CPU explosion of a smart logistics WCS system in.Net
2021.7.28笔记 事务
[MIT 6.S081] Lab 7: Multithreading
2021.7.19 notes DML
Deep recognition: thesis reading_ 2s-agcn cvpr2019 (two stream adaptive graph convolution network based on skeleton action recognition)
Pandas' to_ SQL function usage
Glory and Xiaomi reported on the double 11: they all called themselves champions