|
@@ -1588,7 +1588,7 @@ U.UF.UI.Confirm = U.UF.UI.confirm = function (content, determineFun, cancelFun)
|
|
|
"提示",
|
|
|
_confirm, {
|
|
|
"style": {
|
|
|
- "cssText": "font-size: 14px; background: rgb(255,255,255); width: 310px; position: fixed; box-shadow: 0 0 10px 3px rgb(0,0,0); border-radius: 5px;"
|
|
|
+ "cssText": "font-size: 14px; background: rgb(255,255,255); width: 310px; position: absolute; box-shadow: 0 0 10px 3px rgb(0,0,0); border-radius: 5px;"
|
|
|
}
|
|
|
}, {
|
|
|
"istop": true,
|
|
@@ -1622,7 +1622,7 @@ U.UF.UI.Dialog = U.UF.UI.Dialog = function (content, callBackFun) {
|
|
|
//调用Uform窗体创建函数将主体内容添加到窗体中
|
|
|
var _form = new U.UF.UI.form("提示框", _dialog, {
|
|
|
"style": {
|
|
|
- "cssText": "font-size: 14px; width: 300px; background:#fff; position: fixed; top: 100px; left: 40%; box-shadow: 0 0 10px 3px black; border-radius: 5px;"
|
|
|
+ "cssText": "font-size: 14px; width: 300px; background:#fff; position: absolute; top: 100px; left: 40%; box-shadow: 0 0 10px 3px black; border-radius: 5px;"
|
|
|
}
|
|
|
},
|
|
|
null, {
|
|
@@ -1688,7 +1688,7 @@ U.Alert = U.alert = function (c, t) {
|
|
|
!t ? t = 3000 : "";
|
|
|
var bg = $$("div", {
|
|
|
"style": {
|
|
|
- "cssText": "padding: 12px 25px 12px 25px;font-size: 16px;max-width:300px;min-width:100px;color: rgba(255,255,255,1);background: rgba(0,0,0,0.75);border-radius: 10px;position: fixed;top:20%;left:0px;right:0px;margin:0px auto;text-align:center; word-break: break-word; "
|
|
|
+ "cssText": "padding: 12px 25px 12px 25px;font-size: 16px;max-width:300px;min-width:100px;color: rgba(255,255,255,1);background: rgba(0,0,0,0.75);border-radius: 10px;position: absolute;top:20%;left:0px;right:0px;margin:0px auto;text-align:center; word-break: break-word; "
|
|
|
//white-space: nowrap; -o-text-overflow: ellipsis; text-overflow: ellipsis;
|
|
|
},
|
|
|
innerHTML: c
|
|
@@ -1886,10 +1886,10 @@ U.UF.UI.form.prototype = {
|
|
|
//窗体的统一属性设置,默认属性
|
|
|
if (_formattr.style) {
|
|
|
_formattr.style.cssText = _formattr.style.cssText || "";
|
|
|
- _formattr.style.cssText = "width: 70%; position: fixed; background-color: #fff; z-index: 10; border-radius: 1px; overflow: hidden; -moz-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -webkit-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius:5px;" + _formattr.style.cssText;
|
|
|
+ _formattr.style.cssText = "width: 70%; position: absolute; background-color: #fff; z-index: 10; border-radius: 1px; overflow: hidden; -moz-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -webkit-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius:5px;" + _formattr.style.cssText;
|
|
|
} else {
|
|
|
_formattr.style = {
|
|
|
- cssText: "width: 70%; position: fixed; background-color: #fff; z-index: 10; border-radius: 1px; overflow: hidden; -moz-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -webkit-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius:5px;"
|
|
|
+ cssText: "width: 70%; position: absolute; background-color: #fff; z-index: 10; border-radius: 1px; overflow: hidden; -moz-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -webkit-box-shadow:rgb(38 38 38) 0px 0px 12px 1px; box-shadow:rgb(38 38 38) 0px 0px 12px 1px; -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius:5px;"
|
|
|
};
|
|
|
}
|
|
|
_formattr.close = U.UF.C.apply(this, function () { //关闭窗体;
|