/* 设置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;
}

  

修改 input框、textarea框的placeholder样式的更多相关文章

  1. HTML 使用CSS 如何去掉文本聚焦框 HTML 使用CSS 如何去掉文本聚焦框 : outline 值设为none 修改input、textarea输入框placeholder样式

    HTML 使用CSS 如何去掉文本聚焦框 : outline 值设为none 修改input.textarea输入框placeholder样式  兼容性代码: input::-webkit-input ...

  2. js获取子节点和修改input的文本框内容

    js获取子节点和修改input的文本框内容 js获取子节点: $("#"+defaultPVItemId).children().eq(3); //获取某个选择器下的第四个子节点 ...

  3. 修改文本框和文本域placeholder样式

    input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { font-size:20px; padding:20px ...

  4. 修改input和textarea的placeholder的颜色,限制文本框字数输入

    <style type="text/css"> textarea{ width: 400px; height:400px; resize: none; } .limit ...

  5. 处理Android键盘覆盖input和textarea框的问题

    $(window).resize(function(){ $('input[type="text"],textarea').on('click', function () { va ...

  6. 修改input file 文件上传的样式

    Web页面中,在需要上传文件时基本都会用到<input type="file">元素,它的默认样式: chrome下: IE下: 不管是上面哪种,样式都比较简单,和很多 ...

  7. 修改 input 框输入光标的样式

    input, textarea { font-size: 24px; padding: 10px; color: red; text-shadow: 0px 0px 0px #000; -webkit ...

  8. 修改 input / textarea placeholder 属性的颜色和字体大小

    话不多说,直接上代码: input::-webkit-input-placeholder, textarea::-webkit-input-placeholder { color: #666; fon ...

  9. input和textarea标签的select()方法----选中文本框中的所有文本

    JavaScript select()方法选中文本框中的所有文本 <input>和<textarea>两种文本框都支持select()方法,这个方法用于选择文本框中的所有文本 ...

  10. 修改input属性placeholder的样式

    <!doctype html> <html lang="en"> <head> <meta charset="UTF-8&quo ...

随机推荐

  1. 代码随想录 day0 博客怎么写

    前言 2.25日开始记录自己的博客生涯以及代码随想录训练营的每日内容 一.题目链接怎么找?怎么设置连接? 力扣题目链接1:力扣 二.正文怎么写? 二分查找 算法思路: 二分查找需要保证数组为有序数组同 ...

  2. sqlite查看所有表

    查询所有数据表名 SELECT name _id FROM sqlite_master WHERE type ='table'

  3. HUAWEI--配置单臂路由

    HUAWEI--配置单臂路由 1.在LSW1中创建vlan10和vlan20 [LSW1]vlan batch 10 20 2.接口Eth0/0/2配置trunk,放行vlan10和20,接口Eth0 ...

  4. kafak学习总结

    高可用 多副本机制: 主副本和从副本,从副本只负责同步主副本数据,只有主副本进行读写. 高并发 网络结构设计 多路复用 多selector -> 多线程-> 多队列 高性能 写 把数据先写 ...

  5. react知识点-01

    1. 使用 globalContext 进行生产消费.非父子间通信

  6. clearfix解决高度塌陷和外边距重合问题

  7. python生成一个WAV文件的正弦波

    import numpy as np import matplotlib.pyplot as plt T = 1.0 / sample_rate #周期 x = np.arange(0, 1.0, T ...

  8. 排查前端接受后端的map产生的字段错误

    报错内容 [Request processing failed; nested exception is org.thymeleaf.exceptions.TemplateProcessingExce ...

  9. lib_0001_file_manager.py

    #!/usr/bin/python # -*- coding: UTF-8 -*- import os import pathlib import shutil import sys class fi ...

  10. BP神经网络及手工搭建神经网络

    import pandas as pd import numpy as np import matplotlib.pyplot as plt def sigmoid(x): # 定义网络激活函数 re ...