el-input更改placeholder颜色
时间: 2023-10-07 15:13:37 浏览: 248
你可以通过修改el-input的CSS样式来更改placeholder的颜色。你可以使用以下代码示例中的样式规则来更改placeholder的字体颜色:
.el-input__inner::placeholder {
color: red;
}
这将使placeholder的字体颜色变为红色。你可以将这段代码添加到你的CSS文件中,或者将它嵌入到HTML文档中的style标签内。请确保在修改样式时遵循正确的CSS选择器和规则。引用 引用<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [vue修改子组件中的el-input的placeholder字体颜色](https://blog.csdn.net/weixin_49668076/article/details/126509643)[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: 50%"]
- *3* [input输入框修改placeholder颜色](https://blog.csdn.net/Banana_link/article/details/129442832)[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: 50%"]
[ .reference_list ]
阅读全文