1个回答
展开全部
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style type="text/css">
.div{width: 100%;height: 20px; border: 1px solid red;margin-bottom: 5px;}
::-webkit-input-placeholder { /* WebKit browsers */
color:red;
}
:-moz-placeholder { /* Mozilla Firefox 4 to 18 */
color:red;
}
::-moz-placeholder { /* Mozilla Firefox 19+ */
color:red;
}
:-ms-input-placeholder { /* Internet Explorer 10+ */
color:red;
}
</style>
</head>
<body>
<input type="text" value="" placeholder="asdfasdfasdfasdf">
</body>
</html>
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询