Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.3k views
in Technique[技术] by (71.8m points)

html5 input标签 type=month 如何设置选择面板只能选择月份

看到篇文章里介绍用h5的input标签 type=month可以实现下拉选择月份,我搜了一下貌似选择界面里还是有日期的,只是input的value是某年某月,看了下shadow dom里面也找不到选择面板的组件,能不能实现选择界面只有月份选项?求助,回家补图。


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)

 采用插件实现 ,推荐monthpicker:http://www.helloweba.com/view...


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...