- <!DOCTYPE html>
- <html lang="en">
- <head>
- <meta charset="UTF-8">
- <title>
- Document
- </title>
- <style type="text/CSS">
- input, textarea { color: #0f0; text-shadow: 0px 0px 0px #000; -webkit-text-fill-color:
- transparent; } input::-webkit-input-placeholder, textarea::-webkit-input-placeholder{
- text-shadow: none; -webkit-text-fill-color: initial; }
- </style>
- </head>
- <body>
- <input type="text" placeholder="test">
- <p>
- </p>
- <textarea name="" cols="30" rows="10">
- </textarea>
- </body>
- </html>
来源: http://www.bubuko.com/infodetail-2294783.html