jQueryUI的模态对话框不显示关闭按钮(X) [英] jQueryUI modal dialog does not show close button (x)

查看:1771
本文介绍了jQueryUI的模态对话框不显示关闭按钮(X)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我用我的ASP.NET MVC 3应用一个jQuery模态对话框。它工作正常,除了没有关闭按钮显示在右上角。如何添加呢?

  $(#对话框的模式)。对话框({
            模式:真实,
            的AutoOpen:假的,
            纽扣: {
                OK:功能(){
                    $(本).dialog(亲密);
                }
            }
        });


解决方案

在该对话框的右上角,将鼠标放在那里的按钮的的是,看到相当或者不是你得到一些效果(按钮悬停)。试着点击它,看它是否关闭。如果确实如此接近,那么你只是缺少您的包下载附带图像精灵。

I'm using a jQuery modal dialog in my ASP .NET MVC 3 application. It works fine except for that there is no close button showing in the top right corner. How can I add this?

$("#dialog-modal").dialog({
            modal: true,
            autoOpen: false,
            buttons: {
                Ok: function () {
                    $(this).dialog("close");
                }
            }
        });

解决方案

In the upper right corner of the dialog, mouse over where the button should be, and see rather or not you get some effect (the button hover). Try clicking it and seeing if it closes. If it does close, then you're just missing your image sprites that came with your package download.

这篇关于jQueryUI的模态对话框不显示关闭按钮(X)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆