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

查看:23
本文介绍了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天全站免登陆