[英]How do I prevent Datebox from affecting other input elements?
I currently have a form that has a bunch of input elements in it. 我目前有一个包含一堆输入元素的表单。 I want to use Datebox's calendar feature for the input date. 我想使用Datebox的日历功能作为输入日期。
My problem is that the CSS and JS that Datebox uses affects other input elements on the form. 我的问题是Datebox使用的CSS和JS会影响表单上的其他输入元素。 What is the best way to prevent Datebox's CSS affect other input forms? 防止Datebox的CSS影响其他输入形式的最佳方法是什么?
Here's a jsFiddle link. 这是一个jsFiddle链接。 (click here) (点击这里)
It appears it's the jquery mobile css that you're including doing the styling, not the datepicker. 看来,您要进行样式设置的是jquery移动CSS,而不是datepicker。 You could reset your input styles, though it's possible you don't want the jquery mobile stylesheet. 您可以重置输入样式,尽管您可能不希望使用jquery移动样式表。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.