简体   繁体   English

如何防止Datebox影响其他输入元素?

[英]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.

相关问题 如何更改一个元素更改而又不影响同一类的其他元素? - How do I change one element change without affecting other elements with the same class? 如何在不影响其他元素定位的情况下执行jQuery fadeOut? - How can I do a jQuery fadeOut without affecting the positioning of the other elements? 如何防止用户使用检查器工具更改表单值或删除输入字段元素? - How do I prevent users from changing form values or removing input fields elements using inspector tool? 如何防止jQuery .hover函数同时影响所有图像? - How do I prevent jQuery .hover function from affecting all images simultaneously? 如何防止导航栏与其他元素重叠 - How to prevent a navbar from overlapping other elements 如何在不影响其他元素的情况下扩展DIV - How to expand a DIV without affecting other elements 如何防止jQuery Selector包含嵌套元素? - How do I prevent a jQuery Selector from including nested elements? 如何防止孩子影响父母 - How to prevent child from affecting the parent 如何防止此代码影响img onclick? - How to prevent this code from affecting img onclick? 如何从一组兄弟姐妹中删除一个类而不影响同一个类的其他元素 - How to remove a class from one set of siblings without affecting other elements with same class
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM