`
hehailin1986_163.com
  • 浏览: 151281 次
  • 性别: Icon_minigender_1
  • 来自: 成都
社区版块
存档分类
最新评论

DatePicker 被dialog盖住了

阅读更多
自己没事学着用Datepicker和dialog,主要是弹出一个dialog,里面有个参数使用到了Datepicker。但Datepicker老是被dialog挡住了,综合网上各路英雄的意见,为两个组件设置z-index,即可解决问题。看来是集思广益的好。

在使用dialog的地方:
$j('#dialog').dialog({
		autoOpen: false,
		modal:true,
		width: 630,
		zindex: 900
	});


在datepicker.css中:
div.datepicker {
	position: relative;
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	width: 196px;
	height: 147px;
	position: absolute;
	cursor: default;
	top: 0;
	left: 0;
	display: none;
	/*Add the z-index property, so it can solve the problem of 'the dialog occlusion the datapicker'.modifed by tony he.2009-09-29 */
	z-index: 1200;
}
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics