Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个文本框。现在鼠标悬停,蓝色显示。但实际上我不想在鼠标悬停时改变颜色。任何人都可以给我这个CSS样式...
相当笼统和模棱两可的问题,但如果我理解正确的话,试试这个
textarea:hover, input[type="text"]:hover { background: #ffffff; }
如果您的意思是焦点,请用焦点替换悬停并将#ffffff更改为您想要的颜色