【发布时间】:2016-05-25 01:12:25
【问题描述】:
As you can see in the image the Jquery datepicker is overlapped by input
input 是一个 Kartik Krajee bootstrap 照片上传插件[link:http://plugins.krajee.com/file-input/demo]
HTML
<input id="file-0a" class="file" name="file" type="file" size="" multiple data-min-file-count="1">
Jquery 日期选择器
<input id="datepicker" type="text" name="dob" class="form-control" placeholder="Date of Birth">
<?php
$year = date('Y');
?>
<script>
$(function() {
$( "#datepicker" ).datepicker({changeYear:true, yearRange: '<?php echo $year-70; ?>:<?php echo $year-10; ?>'});
});
</script>
照片上传输入与日历重叠,如您所见,任何人都可以解决这个问题吗??
【问题讨论】:
-
我确实通过检查元素添加了 z-index:0px 并且确实有效,但我不知道在文件中添加的位置
-
您可以通过 css 规则添加它并将
z-index: 0px应用到类/id 中,或者为该元素执行内联 css,例如style="z-index: 0px" -
我做了但没用
标签: javascript jquery html twitter-bootstrap datepicker