Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to understand Custom datetimepicker date Control

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

How to understand the custom datetimepicker date control, I believe that many inexperienced people do not know what to do. Therefore, this paper summarizes the causes and solutions of the problem. Through this article, I hope you can solve this problem.

Bootstrap v3.3.5

Css

/ * = = ys-datetimepicker = = * / .ys-datetimepicker {position:relative; width:100%; height:32px; cursor:pointer;}. Ys-datetimepicker > input.form-control {width:100%; height:32px; background-color:#fff; border-radius: 0; cursor:pointer; border:1px solid # ccc; padding-left:10px;}. Ys-datetimepicker:after {content: "; position:absolute; top:0 Right:0; display:block; width:32px; height:32px; background: url (.. /.. / p_w_picpaths/common/ys-datetime-icon.png) no-repeat center center; background-size:20px 20px; border:1px solid # ccc } .datetimepicker .datetimepicker-dropdown-bottom-right.dropdown-menu. Datetimepicker-minutes .minute.active, .datetimepicker .datetimepicker-dropdown-bottom-right.dropdown-menu. Datetimepicker-hours .hour.active, .datetimepicker.datetimepicker-dropdown-bottom-right.dropdown-menu. Datetimepicker-days .day.active, .datetimepicker. Datetimepicker-dropdown-bottom-right.dropdown-menu. Datetimepicker-months .month.active, .datetimepicker.datetimepicker-dropdown-bottom-right.dropdown-menu. Datetimepicker-years .year.active {datetimepicker Background-color:#e64e4d;}

Html

Javascript

Datetimepicker ({language: "zh-CN", format: "yyyy-mm-dd", todayBtn: "linked", startView:2, minView:2, weekStart: 1, todayHighlight: 1, autoclose: 1, forceParse: 0}); $(".ys-datetimepicker") .on ("click", function (e) {e.stopPropagation (); e.preventDefault () $(this) .closest (".ys-datetimepicker"). Find ("input"). Datetimepicker ("show");}); after reading the above, have you mastered how to understand the custom datetimepicker date control? If you want to learn more skills or want to know more about it, you are welcome to follow the industry information channel, thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report