input::placeholder
时间: 2023-09-04 12:10:33 浏览: 94
input::placeholder是一个CSS伪类选择器,用于样式化输入框的占位符文本。占位符文本是在输入框没有任何输入时显示的默认文本。该选择器可以用于选中所有支持placeholder属性的<input>元素,并对其进行样式设置。在例子中,<input>元素的placeholder属性被设置为"用户名/学号/手机号",当用户没有输入任何内容时,这个文本会显示在输入框中。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [使用jQuery快速解决input中placeholder值在ie中无法支持的问题](https://download.csdn.net/download/weixin_38604330/13052535)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *2* [input中的placeholder属性](https://blog.csdn.net/qq_39986274/article/details/79610833)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
- *3* [input中placeholder属性](https://blog.csdn.net/weixin_47979372/article/details/117337869)[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^v93^chatsearchT3_1"}}] [.reference_item style="max-width: 33.333333333333336%"]
[ .reference_list ]
阅读全文