textarea 的 placeholder样式
时间: 2023-09-02 17:10:59 浏览: 169
textarea 样式
5星 · 资源好评率100%
根据提供的引用内容,可以修改textarea的placeholder样式如下:
textarea::-webkit-input-placeholder {
color: #ddd;
text-align: right;
}
textarea {
caret-color: #EB3142;
vertical-align: baseline;
} [1 [2 [3]
这样修改后,textarea的placeholder文本将会有灰色的字体颜色,并且文本会右对齐。同时,textarea的光标颜色将会是红色的。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *3* [修改input与textarea的placeholder样式](https://blog.csdn.net/weixin_41086056/article/details/106714180)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *2* [修改输入框placeholder文字样式(颜色、字号等)](https://blog.csdn.net/weixin_40687883/article/details/80755224)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文