jquery.datePicker 问题
使用 div 和 iframe,我使用 jQuery 生成弹出窗口:
<div id="popup_add_onderhoud" class="popup_block">
<iframe src="add_onderhoud.php" frameborder="0" scrolling="no" width="425" height="260">
</iframe>
</div>
现在我尝试使用在以下位置找到的 jQuery 日历脚本: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePicker.html
效果很好,但我的脚本中生成的日历太多比原来网站上的大,看来我无法改变这一点。有什么想法吗?
而且位置也不正确,我尝试用 更改它http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerPosition.html 但没有运气。
<script type="text/javascript">
$(function()
{
$('.date_pick').datePicker();
('#bl').dpSetPosition($.dpConst.POS_BOTTOM, $.dpConst.POS_LEFT);
});
</script>
<input type="text" class="date_pick" id="bl" name="datum_volgende" size="10" value="<?php echo $datum_volgende ?>" />
With an div and iframe I generate an popup with jQuery:
<div id="popup_add_onderhoud" class="popup_block">
<iframe src="add_onderhoud.php" frameborder="0" scrolling="no" width="425" height="260">
</iframe>
</div>
Now I'm trying to use an jQuery calendar script found on: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePicker.html
Works nice but the calendat generate in my script is much larger then the one on the original site, it seems I can't change this. Any ideas?
Also the posistion is not right, I have tried to change it with http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/datePickerPosition.html but no luck.
<script type="text/javascript">
$(function()
{
$('.date_pick').datePicker();
('#bl').dpSetPosition($.dpConst.POS_BOTTOM, $.dpConst.POS_LEFT);
});
</script>
<input type="text" class="date_pick" id="bl" name="datum_volgende" size="10" value="<?php echo $datum_volgende ?>" />
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您更改日历中每个
td
的填充,或者更好的是更改字体大小,它的总宽度将会缩小。我相信您想更改此设置:
假设您正在使用链接到的第一个站点中的样式表(它看起来相同)。
但这绝对只是 CSS 问题。
If you change the padding, or maybe better yet, the font size for each
td
in the calendar, the total width of it will shrink.I believe you want to change this:
Assuming you're using the stylesheet from the first site you linked to (it looks the same).
It is definitely just a CSS issue though.