css - Jquery UI 日期选择器显示不正确

标签 css twitter-bootstrap jquery-ui

我尝试将 jquery 日期时间选择器插入页面。但它看起来像这样。有哪些可能的解决方案?

enter image description here

我的代码在这里。

                <div class="col-md-offset-8" style="width: 320px;height: 200px;border: 1px solid #ccc;padding: 10px; box-shadow:2px 2px 4px #f6f6f6; position: absolute;top: 100px;">


                    <form method="post" action="payment.php" onsubmit="return paymentConfirm()" >

                        <label>Package :  <?php echo $pkgs[$id]['name'] ?></label><br/>

                        <input type="hidden" name="pkgname" value="<?php echo $id ?>" />

                        <input type="text" name="date" id="date" />    

                        <label>No. of days :  <?php echo $pkgs[$id]['days'] ?></label><br/>

                        <label>No. of peoples :  <input type="number" style="width: 60px;" id="ppl" name="ppl" value="1" onclick="calc()" onblur="calc()" min="1"/> X $<?php echo $pkgs[$id]['price'] ?></label><br/>

                        <input type="hidden" id="ppl_hidden" name="ppl_hidden" value="1"/>

                        <label style="font-size: 25px;" name="price">Price :  $<span id="price"><?php echo $pkgs[$id]['price'] ?></span></label><br/>
                        <input type="submit" class="button1" value="Book now"/><input type="button" class="button1" value="Print"/>
                    </form>


                </div>

J查询代码

$(function () {
                        $("#date").datepicker();
                    });

最佳答案

在您的 .css 中,将 #datez-index 更改为大于投影的 z-index

关于css - Jquery UI 日期选择器显示不正确,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26071921/

相关文章:

javascript - 在移动网络应用程序中单击时更改按钮背景颜色

css - Bootstrap 3 流体网格问题

javascript - Jquery排序表 ->文本前的数字

html - 风格="display: block"和风格="display: "的区别

html - 选择一个类和其余的前 3 个; nth-child 和 nth-of-type 无用

css - 在行类 div bootstrap 3 中更改控件顺序

jquery - 使用 Bootstrap 让按钮组像单选按钮一样工作

html - Bootstrap 4 scrollspy for nav item inside div 不工作

jquery - 在动态创建的字段上使用 JQuery Datepicker

基于 jQuery UI 的 CSS