Ced*_*ric 4 html css jquery textarea css3
您知道可以使用以下方法将图像添加为textarea的背景图像:
textarea {
background:#fff url(background.png) no-repeat center scroll;
}
Run Code Online (Sandbox Code Playgroud)
如何将文本(不是图像,文本作为图像)作为textarea的背景?
它不是textarea本身包含的文本.这是背后的一些文字.用户可以在textarea中书写,就像背景图像一样,可以看到背后的背景文字.
CSS2首选,CSS3和js都可以.
占位符属性如何:
<textarea rows="5" cols="30" placeholder="enter optional message"></textarea>
Run Code Online (Sandbox Code Playgroud)