html - 如何在禁用的单选按钮/复选框上更改丑陋的光标图像

标签 html css google-chrome internet-explorer disabled-control

我想在悬停在大多数浏览器(Chrome、Internet Explorer 等)中的禁用控件上时删除这个丑陋的红色图像

enter image description here

最佳答案

如果 CSS3 是一个选项,只需使用 :disabled 选择器并将光标设置为其他内容:

input[type='radio']:disabled {
    cursor: default;
}

input[type='checkbox']:disabled {
    cursor: default;
}

关于html - 如何在禁用的单选按钮/复选框上更改丑陋的光标图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/32498587/

相关文章:

html - 将内部 div 拉伸(stretch)到屏幕的整个高度和溢出的内容

javascript - jQuery css ("display","table-cell") 不会立即应用

javascript - 如何同时控制两个滚动条

google-chrome - Firefox Developer Tools 上的响应式 View 显示错误的宽度

maven - 如何在没有 ChromeDriver.exe 的情况下在 Maven 中使用 selenium-chrome-driver

java - 如何在不中断用户的情况下加载页面?

jquery - 溢出 Div 中的偏移量问题

html - Internet Explorer 中的顶部定位错误

css - 将鼠标悬停在包含它的 div 上时更改图标的颜色

javascript - Chrome 特定的 Javascript 范围问题