修改 input框、textarea框的placeholder样式

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/* 设置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;
}

  

posted @   枫若  阅读(507)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· TypeScript + Deepseek 打造卜卦网站:技术与玄学的结合
· 阿里巴巴 QwQ-32B真的超越了 DeepSeek R-1吗?
· 【译】Visual Studio 中新的强大生产力特性
· 【设计模式】告别冗长if-else语句:使用策略模式优化代码结构
· AI与.NET技术实操系列(六):基于图像分类模型对图像进行分类
历史上的今天:
2021-07-26 vue-i18n ,vue项目中如何实现国际化
2021-07-26 vue 组件的 scrollBehavior 2
2021-07-26 vue-router中scrollBehavior的巧妙用法
2021-07-26 页面刷新(vue)
2021-07-26 服务器配置nginx.conf文件
点击右上角即可分享
微信分享提示