当使用JQueryUI模式对话框时,关闭按钮会自动将焦点引导通过jquery工具提示显示标题。我不想在模态中集中任何东西。我试图在模态窗口的标题上添加一个点击触发器,但它似乎没有效果。JQueryUI模式 - 关注关闭按钮 - 如何删除关闭按钮上的焦点
请帮帮我。
<script src="https://code.jquery.com/ui/1.10.1/jquery-ui.js"></script>
<script src="https://code.jquery.com/jquery-1.10.2.js"></script>
<script>
$(function() { \t \t
$("#dialog").dialog({
\t width : 710,
\t height : 410,
\t modal: true,
\t resizable: false, \t
\t draggable: false
\t
});
});
<link rel="stylesheet" href="https://code.jquery.com/ui/1.10.1/themes/base/jquery-ui.css">
.ui-dialog-titlebar {
height: 15px;
\t }
\t
\t iframe {
position: absolute;
top: 50%;
margin-top: -170px;
left: 50%;
margin-left: -340px;
}
html, body {
margin: 0;
padding: 0;
height: 100%;
}
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Dialog - Default functionality</title>
</head>
<body>
<div class="modal"></div>
<div id="dialog" title=" ">
<iframe style="position:absolute;Left:150" frameborder="0" scrolling="no" width="670" height="350" src="popUp.html" ></iframe>
</div>
</body>
</html>
哪里是你popup.html SRC? –
你可以用任何html页面代替popUp.html –
@NarendrakumarM html popUp.html无所谓.. –