修改placeholder


<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="stylesheet" href="reset.css">
    <title>Document</title>
    <style>
        #myinput::placeholder,
        #myinput::-webkit-input-placeholder {
            color: darkred;
            background-color: pink;
        }
    </style>
</head>

<body>
    <input type="text" placeholder="123" name="myinput" id="myinput">
</body>

</html>

文章作者: iamfugui
版权声明: 本博客所有文章除特別声明外,均采用 CC BY 4.0 许可协议。转载请注明来源 iamfugui !
评论