修改input搜索框默认叉号的样式为自定义图片
兼容IE的自定义input搜索框叉号样式(使用图片替换input原生叉号)
input::-webkit-search-cancel-button {
-webkit-appearance: none;
position: relative;
height: 15px;
width: 15px;
border-radius: 50%;
background: url("1.jpg") no-repeat center;
background-size: 100% 100%;
color:rgba(0,0,0,0);
}
input[type=search]::-ms-clear {
appearance: none;
position: relative;
height: 15px;
width: 15px;
border-radius: 50%;
background: url("1.jpg") no-repeat center;
background-size: 100% 100%;
color:rgba(0,0,0,0);
}本文内容仅供个人学习、研究或参考使用,不构成任何形式的决策建议、专业指导或法律依据。未经授权,禁止任何单位或个人以商业售卖、虚假宣传、侵权传播等非学习研究目的使用本文内容。如需分享或转载,请保留原文来源信息,不得篡改、删减内容或侵犯相关权益。感谢您的理解与支持!