您的位置:首页 > 其它

如何改变placeholder的默认颜色

2015-10-08 11:31 302 查看
原文链接:https://www.geek-share.com/detail/2655233681.html

<!doctype html>

<html>

<head>

    <meta charset="UTF-8">

    <title>Document</title>

    <style>

    :-moz-placeholder { /* Mozilla Firefox 4 to 18 */

   color: #f00;  

}

::-moz-placeholder { /* Mozilla Firefox 19+ */

   color: #f00;

}

input:-ms-input-placeholder,

textarea:-ms-input-placeholder {

   color: #f00;

}

input::-webkit-input-placeholder,

textarea::-webkit-input-placeholder {

   color: #f00;

}

    </style>

</head>

<body>

    <input type="text" name="" id="" value=""  placeholder="请输入您要搜素的内容"/>

</body>

</html>


转载于:https://www.geek-share.com/detail/2655233681.html

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: