javascript - 移除 HTML5 输入类型 ="time"出现的箭头

标签 javascript css html input time

我使用的是默认的 HTML5 示例代码行: 我使用了自定义背景。我想删除右侧出现的黑色箭头。

The image shows a black arrow that appears. Need it remove it. I tried many css tricks but didn't work.

示例代码

最佳答案

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/

相关文章:

javascript - Javascript "delay evaluation"想要避免急切评估时如何运行?

javascript - 当 AngularJS 列表中找不到输入值时如何显示元素?

javascript - 在 AngularJs 中的模型 debouce 评估之前访问 md-autocomplete 输入值

javascript - 如何使用按钮重置网页

javascript - 包含垂直可滚动 div 的水平可滚动 div 在 iOS 上不会水平滚动

javascript - Unresolved CSS3 变换旋转,仅在 Chrome 中。旋转并隐藏 div :(?

javascript - toDataURL() 小屏幕,保存的图像小

javascript - 在相对于页面的固定 div 内滚动内容

php - Angular 与 html 一起使用 Angular 中的 $http.get 从数据库获取值

css - 如何在 HTML 中使用 float 正确定位它们?