Welcome to OStack Knowledge Sharing 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 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...