jQuery UI对话框:如何在没有标题栏的情况下进行初始化? [英] jquery UI dialog: how to initialize without a title bar?

查看:113
本文介绍了jQuery UI对话框:如何在没有标题栏的情况下进行初始化?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以打开不带标题栏的jQuery UI对话框?

Is it possible to open a jQuery UI Dialog without a title bar?

推荐答案

我找到了动态删除标题栏的修复程序.

I figured out a fix for dynamically removing the title bar.

$("#example").dialog(dialogOpts);
// remove the title bar
$(".ui-dialog-titlebar").hide();

在呈现对话框之后,这将删除所有带有"ui-dialog-titlebar"类的元素.

This will remove all elements with the class 'ui-dialog-titlebar' after the dialog box is rendered.

这篇关于jQuery UI对话框:如何在没有标题栏的情况下进行初始化?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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