GVKun编程网logo

CSS Custom JQuery ui-dialog

9

在这篇文章中,我们将带领您了解CSSCustomJQueryui-dialog的全貌,同时,我们还将为您介绍有关ASP.NETjQuery实例16通过控件CustomValidator验证RadioB

在这篇文章中,我们将带领您了解CSS Custom JQuery ui-dialog的全貌,同时,我们还将为您介绍有关ASP.NET jQuery 实例16 通过控件CustomValidator验证RadioButtonList_jquery、bgiframe与jQuery UI 1.8.9 Dialog和jQuery 1.5、jquery blockUI 扩展插件 Dialog、jQuery EasyUI API 中文文档 - Dialog对话框_jquery的知识,以帮助您更好地理解这个主题。

本文目录一览:

CSS Custom JQuery ui-dialog

CSS Custom JQuery ui-dialog

我需要在 JQuery ui对话框周围添加一个2像素的边框.

任何人都可以帮忙修改一下吗?

谢谢

解决方法

更改.ui-widget-content的CSS规则:
.ui-widget-content {
    border: 2px solid #DDD;
}

最不具侵入性的方法是将该规则添加到您网站的样式表中(例如,不要更改jQuery UI CSS文件),并确保首先加载jQuery UI CSS文件.

ASP.NET jQuery 实例16 通过控件CustomValidator验证RadioButtonList_jquery

ASP.NET jQuery 实例16 通过控件CustomValidator验证RadioButtonList_jquery

界面代码:

复制代码 代码如下:















请选择汽车类型:












ForeColor="Red" ClientValidationFunction="rbCar_Validation">



脚本代码:
复制代码 代码如下:


Recipe16




显示效果:

bgiframe与jQuery UI 1.8.9 Dialog和jQuery 1.5

bgiframe与jQuery UI 1.8.9 Dialog和jQuery 1.5

所以我使用的是jQuery UI的对话框.但是当我读到IE6中有一个常见的错误(不幸的是我必须确保它有效),其中下拉列表不关注z-index队列.我还读到有一个方便的插件,称为bgiframe来处理我的叠加问题.我找到了人们说使用它的两种不同方式,但都不起作用.我可能只是在做一些非常愚蠢的事情,但我需要让它发挥作用.

包括jQuery.bgiframe.js版本2.1.1
以下是我试图在没有工作的情况下使用它的两种方法:(我已经在我正在处理的页面中包含了所有jQuery-UI,jQuery和bgiframe)

>来自实际插件的文档说这样做:

$("#selectDropdownThatNeedsFixing").bgiframe();

这会导致jQuery异常,说对象是预期的.
>我从下一页看到的第二种方式:http://docs.jquery.com/UI/Dialog/dialog基本上你只是设置bgiframe:初始化对话框时为true:

$( ".selector" ).dialog({ bgiframe: true });

这不会出错,但是当我测试它时,IE6中仍然存在问题.

我错过了什么吗?我应该用哪种方式使用bgiframe?任何方向都会非常感激.谢谢您的帮助!

解决方法

您不需要为此使用插件. IE6和z-index的问题是,IE6中的定位元素生成一个以z-index值为0开始的新堆栈上下文.因此,z-index在IE6中无法正常工作.此问题的解决方法是在父选择器中指定一个z-index值,该值等于子选择器中指定的z-index.

检查http://jsfiddle.net/ebgnu/2/的工作示例

下面是我在jsfiddle中做的例子.

.parent{
    position: relative;
    color:white;
}
.parent#a {
    height: 2em;
    z-index: 1;
}
.parent#a .child{
    position: absolute;
    height: 6em;
    width: 2em;
    z-index: 1;
    background:blue;
}
.parent#b {
    height: 2em;
    background:red;
}

<divid="a">
    <div>a</div>
</div>
<divid="b">
    <div>b</div>
</div>

查看.parent#a这是子选择器a的父级,其z-index为1.在此示例中,a将位于b的顶部.让我们说我们想把b放在上面.我们需要做的就是将子a和它的父级的值更改为z-index:0.这会将它发送到后面.

jquery blockUI 扩展插件 Dialog

jquery blockUI 扩展插件 Dialog

对jQuery blockUI插件进行了小的封装扩展,支持confirm、alert、dialog弹出窗口提示信息,支持按钮回调事件。可以自定义css样式、覆盖blockUI的样式等

首先要到jquery blockUI 官方网址:

下载jquery.blockUI JS lib:

而且还需要jquery lib:

jquery.blockUI.dialog.js

($) { _dialog = $.blockUI.dialog = {}; defaultOptions = { , ,monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> border: ,monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> : ,monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> backgroundColor: () { (fn) { () { (settings) { message = settings.message || ; okText = settings.okText || ; cancelText = settings.cancelText || ; ( settings.onOk !== ) { .emptyHandler; ( settings.onCancel !== ) { .emptyHandler; okCallback = .callbackHandler(settings.onOk) || .emptyHandler; cancelCallback = .callbackHandler(settings.onCancel) || .emptyHandler; html = [ ,monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> ',monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> message,monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> ',monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> ,monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> ); $el = $(html); ).get(0).onclick = okCallback; ).get(0).onclick = cancelCallback; $el; (settings) { message = settings.message || ; okText = settings.okText || ; html = [ ,monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> ',monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> message,monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> ',monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> okText,monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> ).get(0).onclick = okCallback; _options = defaultOptions; () { _options.confirmElement(arguments[0]); () { _options.alertElement(arguments[0]); (opts) { i = ( opts === ) ? 1 : 0; defaults = { ,monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> onOk: arguments[i++] || _options.emptyHandler(),monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> onCancel: arguments[i++] || _options.emptyHandler(),monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> okText: arguments[i++] || ,monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> cancelText: arguments[i] || settings = $.extend({},_options,defaults,opts); (opts) { defaults = { ,monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> onOk: arguments[i++] || _options.emptyHandler(),monospace; border-right-style: none; border-left-style: none; background-color: white; text-align: left; border-bottom-style: none"> okText: arguments[i] || settings = $.extend({},monospace; border-right-style: none; border-left-style: none; background-color: #f4f4f4; text-align: left; border-bottom-style: none"> settings = $.extend(settings,{ message: _dialog.alertElement(settings) }); (opts) { () {

jQuery EasyUI API 中文文档 - Dialog对话框_jquery

jQuery EasyUI API 中文文档 - Dialog对话框_jquery

扩展自 $.fn.window.defaults,用 $.fn.dialog.defaults 重写了 defaults

 


依赖
window
linkbutton
用法

复制代码 代码如下:


Dialog Content.


复制代码 代码如下:

$(''#dd'').dialog({
modal:true
});

特性
其特性扩展自 window,下列是为 dialog 重写的特性。
名称

类型

说明

默认值

title

string

对话框的标题文字。

New Dialog

collapsible

boolean

定义是否显示折叠按钮。

false

minimizable

boolean

定义是否显示最小化按钮。

false

maximizable

boolean

定义是否显示最大化按钮。

false

resizable

boolean

定义对话框能否调整尺寸。

false

toolbar

array

对话框的顶部工具栏,每个工具的选项都与 linkbutton 一样。

null

buttons

array

对话框的底部按钮,每个按钮的选项都与 linkbutton 一样。

null


事件

其事件扩展自 window。

方法

其方法扩展自 window,下列是为 dialog 增加的方法。

名称

参数

说明

dialog

none

返回 dialog 对象。

关于CSS Custom JQuery ui-dialog的问题我们已经讲解完毕,感谢您的阅读,如果还想了解更多关于ASP.NET jQuery 实例16 通过控件CustomValidator验证RadioButtonList_jquery、bgiframe与jQuery UI 1.8.9 Dialog和jQuery 1.5、jquery blockUI 扩展插件 Dialog、jQuery EasyUI API 中文文档 - Dialog对话框_jquery等相关内容,可以在本站寻找。

本文标签:

上一篇css3 – Bootstrap旋转木马作为网站背景(css3旋转木马效果)

下一篇css – 关闭Capybara测试中的动画