jQuery对话框具有巨大的标题
|
我在用着:
jQuery 1.6.1
jQuery UI 1.8.13
铬12.0.742.100
IE 7.0.5
FF 4
我创建了一个JQuery UI对话框,在所有3个对话框中看起来都不错。
我继续浏览并制作了更多页面,但是对对话框或css却什么也没做(据我所知,这对JQuery和CSS来说还很新)。然后昨天昨天我所有页面上的每个对话框看起来都像这样(仅在FF和chrome中。IE仍然看起来不错)...
它的标题部分突然很大,我不知道为什么。我一直在使用Firebug在CSS中闲逛,但我无法改变它。
有人有什么好主意吗?
HTML,CSS和JQuery都是非常标准的。我正在使用JQuery-UI站点中的一个预卷主题。
<div id=\"Div1\" title=\"Connections\">
<a href=\"CM.aspx?mode=0\" class=\"jquery-ui-button dialog-link-button\">Add</a>
<a href=\"CMSearch.aspx\" class=\"jquery-ui-button dialog-link-button\">Search/Edit</a>
</div>
/* --------------------------------------------------------------------- */
/* disable the x in the upper-right corner of jquery-ui dialogs */
.ui-dialog-titlebar-close
{
display: none;
}
/* center the user-defined buttons within jquery-ui dialogs */
.dialog-link-button
{
float: none;
width:250px;
display: block;
margin: 10px auto;
}
/* make the buttons in the jquery-ui dialog button pane on the bottom center aligned */
.ui-dialog-buttonpane .ui-dialog-buttonset .ui-button
{
float: none;
display: block;
margin: 10px auto;
}
/* --------------------------------------------------------------------- */
var options = {
autoOpen: false,
modal: true,
open: function(event, ui) {
/* blur the buttons so they aren\'t auto selected */
$(\".dialog-link-button\").blur();
},
resizable: false,
buttons: {
Cancel: function() {
$( this ).dialog( \"close\" );
}
}
};
$(\'#connectionsModal\').dialog(options);
/* --------------------------------------------------------------------- */
没有找到相关结果
已邀请:
2 个回复
屡倒雷图
包裹在
中来进行修复。这样,当jQuery创建模态时,它将附加到主体上,并且浮点数将由我们的新div清除。 我确实承认,这是我所见过的最奇怪的效果。 修改后的“ 4”:
粟痢凰副
以供参考, jQuery UI对话框标题栏太高