How to select with css indicator in <input type=“time”>?

扶醉桌前 提交于 2019-12-24 18:23:38

问题


How to select with css indicator ( arrows ) in <input type="time"> ?

I want to style them.


回答1:


input[type="time"]{
    /**style goes here **/
 }

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 **/
    }

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



来源:https://stackoverflow.com/questions/44247071/how-to-select-with-css-indicator-in-input-type-time

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!