我使用的是默认的 HTML5 示例代码行: 我使用了自定义背景。我想删除右侧出现的黑色箭头。
示例代码
最佳答案
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
margin: 0;
}
或
/* Hide the cancel button */
::-webkit-search-cancel-button {
-webkit-appearance: none;
}
/* Hide the magnifying glass */
::-webkit-search-results-button {
-webkit-appearance: none;
}
/* Remove the rounded corners */
input[type=search] {
-webkit-appearance: none;
}
关于javascript - 移除 HTML5 输入类型 ="time"出现的箭头,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/43246294/