我在我的应用程序中使用输入类型搜索。当用户鼠标悬停在搜索框中的 x 图标上时,我想显示 cursor:pointer
,我试图为此找到 css,但没有找到与此相关的任何内容。
<input type="search">
最佳答案
也许像这样的东西可以工作?
input[type="search"]::-webkit-search-decoration:hover,
input[type="search"]::-webkit-search-cancel-button:hover {
cursor:pointer;
}
<input type="search">
关于css - 在搜索文本框中的悬停关闭图标上显示指针,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/46791545/