我有一个输入字段,我在其中添加了一个日期选择器。由于某种原因,当我单击输入字段时,datepicker不会打开,但如果我在它周围单击,datepicker将打开并填充字段中的数据。
这是HTML:
<div class="row">
<label for="video_due_date">Birthday Date</label>
<div class="text">
<input id="video_due_date" name="video[due_date]" size="30" type="text" value="2011-12-24 13:51:58 UTC" />
</div>
</div>这是CSS:
.sign-form .row .text,
.sign-form .place-holder{
float:left;
background:url(../images-2/sprite-form.gif) no-repeat 0 -44px;
position:relative;
height:38px;
}这是JS的代码:
<script type="text/javascript">
$(document).ready(function() {
$('#video_due_date').datepicker({minDate: 0,
dateFormat: 'yy-mm-dd 00:00:00'
});
});
</script>你知道是什么导致了这个问题吗?为了让datepicker在字段内打开而不是从它周围的区域打开,我应该做些什么?
谢谢,凯伦
发布于 2011-11-29 01:33:38
好的。明白了。这是.row:after类中的一些问题。以下是工作版本:
.row:after{content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;}此代码复制自blueprint css框架。
Here都是代码。
https://stackoverflow.com/questions/8284557
复制相似问题