简体   繁体   English

关闭图标(X)对于Jquery对话框不可见

[英]The close icon(X) is not visible for Jquery dialog box

I have created the jquery dialog. 我已经创建了jQuery对话框。 It does not show the close(x) button in IE, but in FF it shows correctly. 它不会在IE中显示close(x)按钮,但是在FF中它会正确显示。 Please help me to solve this issue. 请帮我解决这个问题。

Jquery Version: 1.11.1 Jquery UI version: 1.10.4 jQuery版本:1.11.1 jQuery UI版本:1.10.4

Code: 码:

<!-- ui-dialog -->
<div id="dialog" title="Dialog Title">
    <p>Test Me.</p>
</div>

$( "#dialog" ).dialog({
                 width : 400,
              resizable : false,
        buttons: [
        {
            text: "Yes",
            click: function() {
                $( this ).dialog( "close" );
            }
        },
        {
            text: "No",
            click: function() {
                $( this ).dialog( "close" );
            }
        }
    ]
});

Make sure you are loading the script in correct order: 确保以正确的顺序加载脚本:

  1. jQuery core library <script src="..../jquery-1.11.1.js"></script> jQuery核心库<script src="..../jquery-1.11.1.js"></script>
  2. Bootstrap js (if using) <script src="/js/bootstrap.min.js"></script> Bootstrap js(如果使用) <script src="/js/bootstrap.min.js"></script>
  3. jQuery UI library <script src="..../jquery-ui-1.10.4.j.js"></script> jQuery UI库<script src="..../jquery-ui-1.10.4.j.js"></script>

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM