How to select with css indicator in lt;input type=quot;timequot;gt;?(如何在lt;input type=“timegt;中使用css指标进行选择?)
问题描述
如何在 <input type="time">
中使用 css 指示器(箭头)进行选择?
How to select with css indicator ( arrows ) in <input type="time">
?
我想给它们设置样式.
推荐答案
input[type="time"]{
/**style goes here **/
}
如果你想选择微调器(你说箭头"),你可以通过下面的 css 来做到这一点,
If you want to select the spinner (which you say "arrow") you can do that by the css below,
input[type="number"]::-webkit-inner-spin-button{
/**style goes here **/
}
但不幸的是,这适用于 chrome,但不适用于 firefox,因为 firefox 不适用于 webkit 引擎,
But unfortunately this will work for chrome, but not for firefox, since firefox does not work with webkit engine,
首先,我想建议您制作像此代码链接一样的自定义微调器(您说箭头").希望您能以这种方式找到解决方案.:)
Above all, I would like to suggest you, to make custom spinner (which you say "arrow") like this code link. Hope you will find the solution this way. :)
https://codepen.io/komarovdesign/pen/PPRbgb
这篇关于如何在<input type=“time">中使用css指标进行选择?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何在<input type=“time">中使用css指标进行选择?


基础教程推荐
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01