一点一点地积累,慢慢地你会得到你想要的东西,为自己而加油吧!
修改input中placeholder的默认样式
<html>
<head>
<meta charset="UTF-8">
<title>修改input中placeholder的默认样式</title>
<style>
input{
width:500px;
height:40px;
}
.change::-webkit-input-placeholder{
font-size:20px;
color:red;
}
/*Mozilla Firefox 4 to 18*/
:-moz-placeholder{
font-size:20px;
color:red;
}
/*Mozilla Firefox 19+*/
::-moz-placeholder{
font-size:20px;
color:red;
}
:-ms-input-placeholder{
font-size:20px;
color:red;
}
/*注意:和::的区别*/
</style>
</head>
<body>
<input class="change" type="text" placeholder="修改placeholder的默认样式">
</body>
</html>