扫码关注官方订阅号
<textarea placeholder="this is line 1\n this is line 2\n this is line 3"></textarea>
这种写法是无效的。
闭关修行中......
placeholder="字体 字体">
楼主试试这个?
ask before google: http://segmentfault.com/a/1190000000362621
不能换行吧。
你要实现换行的话,palceholder只能用js来了。
http://stackoverflow.com/questions/7312623/insert-line-break-inside-placeholder-attribute-of-a-textarea
微信扫码关注PHP中文网服务号
QQ扫码加入技术交流群
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
PHP学习
技术支持
返回顶部
楼主试试这个?
ask before google: http://segmentfault.com/a/1190000000362621
不能换行吧。
你要实现换行的话,palceholder只能用js来了。
http://stackoverflow.com/questions/7312623/insert-line-break-inside-placeholder-attribute-of-a-textarea