DNN交互设计-警告对话框dnnAlert(七)
来源:互联网 发布:js 富文本编辑器 编辑:程序博客网 时间:2024/06/06 03:13
界面模式及使用方式
弹出框经常被用来向客户展示非常重檐的信息。警告框的关键就是要保证消息的传递。用户需要采取特别的活动以关闭弹出对话框。
HTML
<div class="MainDemoArea dnnClear"> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nam fermentum erat ullamcorper erat vulputate fermentum. Morbi posuere neque et lacus tempor ultricies. Nullam sapien nisi, ullamcorper in mollis volutpat, fermentum vel lorem. </p> <p>Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Curabitur pretium diam ut quam sagittis pretium.</p> <ul id="dialogs-demo" class="dnnActions"> <li><a class="alert dnnPrimaryAction" href="#">See this Alert!</a></li> </ul></div>
CSS
#Body .ui-widget-overlay { background: #000; opacity: .60; filter: Alpha(Opacity=60); position: absolute; top: 0; left: 0; width: 100%; height: 100%;}#Body .ui-widget-shadow { margin: 5px 0 0 5px; padding: 0px; background: #999; opacity: .45; filter: Alpha(Opacity=45); -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px;}.dnnFormPopup { position: absolute; padding: 0; width: 300px; border: 4px #ccc solid; background: #fff; border-radius: 10px; -moz-border-radius: 10px;}#iPopUp { width: 100% !important; padding-top: 10px;}.dnnFormPopup .ui-dialog-titlebar { padding: 0.8em 1.2em; position: relative; background: #4E4E4E; background: -moz-linear-gradient(top, #4E4E4E 0%, #282828 100%); overflow: hidden; background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#4E4E4E), color-stop(100%,#282828)); filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#4E4E4E', endColorstr='#282828',GradientType=0 ); color: #fff; font-weight: bold; text-shadow: 0px 1px 1px #000; cursor: move; -webkit-border-top-left-radius: 6px; -webkit-border-top-right-radius: 6px; -webkit-border-bottom-right-radius: 0px; -webkit-border-bottom-left-radius: 0px; -moz-border-radius-topleft: 6px; -moz-border-radius-topright: 6px; -moz-border-radius-bottomright: 0px; -moz-border-radius-bottomleft: 0px; border-top-left-radius: 6px; border-top-right-radius: 6px; border-bottom-right-radius: 0px; border-bottom-left-radius: 0px;}.dnnFormPopup .ui-dialog-title { float: left; margin: .1em 16px .1em 0; position: relative; font-size: 14px;}.dnnFormPopup a.ui-dialog-titlebar-close { text-indent: -9999em; display: block; position: absolute; right: 10px; top: 10px; background: url(../../images/close-icn.png) no-repeat; height: 24px; width: 24px;}.dnnFormPopup a.dnnToggleMax { float: right; display: block; text-indent: -9999em; background: url(../../images/modal-max-min-icn.png) no-repeat bottom; height: 24px; width: 24px; margin: 1px 24px 0 0;}.dnnFormPopup a.dnnToggleMax.ui-dialog-titlebar-max { background: url(../../images/modal-max-min-icn.png) no-repeat top }.dnnFormPopup .ui-dialog-content,#iPopUp .ui-dialog-content { position: relative; border: 0; padding: 0px; background: #fff; overflow: auto; zoom: 1;}.dnnFormPopup .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em;}.dnnFormPopup .ui-dialog-buttonpane .ui-dialog-buttonset { float: right }.dnnFormPopup .ui-dialog-buttonpane button { margin: .5em .4em .5em 0.8em; cursor: pointer; padding: 0.5em 1em;}.dnnFormPopup .ui-resizable-se { width: 14px; height: 14px; float: right; background: url(../../images/modal-resize-icn.png) no-repeat bottom; height: 24px; width: 24px;}.dnnFormPopup .dnnDialog { padding: 10px }.dnnLoading { background: #fff url(../../images/loading.gif) no-repeat center center; position: absolute; z-index: 9999;}
jQuery
script type="text/javascript"> jQuery(function ($) { $('#dialogs-demo .alert').click(function (event) { event.preventDefault(); $.dnnAlert({ text: '<img style="margin:0 1em 0 0" src="<%=ResolveUrl("Images/Geordi La Forge.jpg")%>" width="200" alt="Geordi La Forge" /> <blockquote style="font-size:12px;">Matter-antimatter mixture ratio settings... at optimum balance. Reaction sequence... corresponding to specified norms. Magnetic plasma transfer to warp field generators per program specs. Commander, we should be going like a bat out of hell!</blockquote>', width: 700 }); }); });</script>
- DNN交互设计-警告对话框dnnAlert(七)
- DNN交互设计-确认对话框dnnConfirm(八)
- DNN交互设计-介绍(一)
- DNN交互设计-基础设置(二)
- DNN交互设计-Tabs(三)
- DNN交互设计-提示Tooltips(九)
- DNN交互设计-模块消息 (十)
- DNN交互设计-按钮(十二)
- DNN交互设计-CSS基础
- DNN交互设计-Panels可收缩界面(四)
- DNN交互设计-输入文本项(五)
- DNN交互设计-日期选择控件(六)
- DNN交互设计-网格视图dnnGrid(十一)
- DNN交互设计-综合使用界面模式
- 关于对话框的交互设计
- 警告(alert 消息对话框)
- 警告对话框
- 警告对话框
- python 连接 mongodb
- DNN交互设计-日期选择控件(六)
- Undefined reference to err_sys 的解决
- hibernate 一对一双向关联
- MIME TYPE 大全
- DNN交互设计-警告对话框dnnAlert(七)
- tomcat6.0 启用Gzip压缩
- DNN交互设计-确认对话框dnnConfirm(八)
- 在linux环境下,设计一个程序,统计一篇英文文章中的字母数,数字数和空格数
- hibernate 多对一关联
- DNN交互设计-提示Tooltips(九)
- DNN交互设计-模块消息 (十)
- seo完整优化方案
- DNN交互设计-网格视图dnnGrid(十一)