修改 input框、textarea框的placeholder样式
2024-10-21 13:04:35
/* 设置input框提示内容的样式 */
input::-webkit-input-placeholder {
font-size: 14px;
color: #ccc;
font-weight: 400;
font-family: sans-serif;
} /*webkit 内核浏览器*/
input::-moz-placeholder {
font-size: 14px;
color: #ccc;
font-weight: 400;
font-family: sans-serif;
} /*Mozilla Firefox 19+*/
input:-moz-placeholder {
font-size: 14px;
color: #ccc;
font-weight: 400;
font-family: sans-serif;
} /*Mozilla Firefox 4 to 18*/
input:-ms-input-placeholder {
font-size: 14px;
color: #ccc;
font-weight: 400;
font-family: sans-serif;
} /* 设置textarea框提示内容的样式 */
textarea::-webkit-input-placeholder {
font-size: 14px;
color: #ccc;
font-weight: 400;
font-family: sans-serif;
} /*webkit 内核浏览器*/
textarea::-moz-placeholder {
font-size: 14px;
color: #ccc;
font-weight: 400;
font-family: sans-serif;
} /*Mozilla Firefox 19+*/
textarea:-moz-placeholder {
font-size: 14px;
color: #ccc;
font-weight: 400;
font-family: sans-serif;
} /*Mozilla Firefox 4 to 18*/
textarea:-ms-input-placeholder {
font-size: 14px;
color: #ccc;
font-weight: 400;
font-family: sans-serif;
}
最新文章
- Leetcode 笔记 35 - Valid Soduko
- 用python实现的百度音乐下载器-python-pyqt-改进版
- Scrapy的中Css 选择器
- SQL Server 数据库备份
- 隐藏 input 标签的边框
- 连连看的设计与实现——四人小组项目(GUI)
- UVALive 3713 Astronauts (2-SAT,变形)
- MAC X OS 自定义分辨率
- 用DOS命令获取文件列表
- set RowCount 与 top n
- “.Net 社区大会”(dotnetConf) 2017 Day 1 Keynote: .NET Everywhere
- java 修饰符之修饰范围
- 如何控制input框!
- C控制台实现模拟平抛运动算法
- <;六>;企业级开源仓库nexus3实战应用–使用nexus3配置yum私有仓库
- js数组作为参数用ajax向后台传参数
- TortoiseSVN切换更改登录账号密码
- 《Android应用性能优化》1——代码
- vue中实现中,自动补全功能
- C#学习笔记-外观模式
热门文章
- VS2022 17.1.6在windows10下打开winform设计器报timed out while connecting to named pipe错误
- supervisor 安装及基本使用
- linux开机出现grub界面
- 【Frida】打印方法的调用堆栈
- golang 用gorm生成module文件
- 利用Word文档的宏命令,仿信纸写文件报告
- Linux系统Shell脚本第三章:for、while循环及脚本实操
- hadoop服务异常,磁盘坏道critical medium error,dev sdh,sector xxxx
- [WSL-1-Ubuntu]使用oh-my-zsh美化你的WSL(附脚本)
- 南大ics-pa/PA1.1过程及感想