最近在项目升级成了 vue3 vite ts 然后项目中用到了一element plus 组件库 在写了一段时间后发现input 输入框选择的时候没有蓝色的背景, 我不知道我是否选择了 但是ctrl + a 复制出来的是选择的, 这就证明我是选中了的 然后找了很久找了一个 el-input__inner::selection 的样式 是选择的效果样式 我尝试在上面设置背景色 发现有用 然后解决了这个问题
.el-input__inner::selection{
background-color: #318efe !important;
color: #fff !important;
}