HTML5输入日期日历样式 [英] HTML5 input date calendar styling

查看:71
本文介绍了HTML5输入日期日历样式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我刚刚发现了此HTML5功能,并且设法设置了 some 输入属性的样式.

I just discovered this HTML5 feature, and I managed to style some input properties.

因此在Chrome中,此输入会打开一个很棒的日历框,我想为其设置样式.我没有通过Google搜索找到任何东西.是否有一些有关此日历的chrome date输入类型的文档,并且有样式的方法吗?

So in Chrome this input opens an awesome calendar box and I want to style it. I didn't find anything via Google search. Is there some documentation for chrome date input type of this calendar, and is there a way of styling it?

我对跨浏览器支持不感兴趣,并且我不想使用jQueryUI或类似的东西.

I'm not interested on cross-browser support, and I don't want to use jQueryUI, or anything like that.

我正在使用Angular2和Typescript,只是将jQuery插入其中,这使我肠胃不适.

I'm using Angular2 and typescript and just plugging jQuery into that makes my stomach sick.

我只会在Chrome上使用它(不需要其他浏览器支持).

I'm only going to be using this on Chrome (no other browser support necessary).

推荐答案

根据

为html5本地datepicker设置日历样式

是否有任何样式选项使用HTML5日期选择器?

似乎不可能.也许也是有充分的理由-谁知道如果允许这种大小的特定于浏览器的窗口小部件样式会发生什么混乱.我认为Chrome只是为用户提供了一个简单的可用性改进.

it doesn't seem like it's possible. Probably for good reason too - who knows what kind of chaos would ensue if browser specific widget styling of this magnitude was allowed. I think Chrome just provides this as a simple usability improvement for users.

这篇关于HTML5输入日期日历样式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆