|
@@ -96,7 +96,7 @@ function myAlert(str, sec) {
|
|
|
//背景div
|
|
|
const bgObj = document.createElement("div");
|
|
|
bgObj.setAttribute('id', 'alertbgDiv');
|
|
|
- bgObj.style.position = "absolute";
|
|
|
+ bgObj.style.position = "fixed";
|
|
|
bgObj.style.top = "0";
|
|
|
bgObj.style.background = "#E8E8E8";
|
|
|
bgObj.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=3,opacity=25,finishOpacity=75";
|
|
@@ -112,7 +112,7 @@ function myAlert(str, sec) {
|
|
|
msgObj.setAttribute("align", "center");
|
|
|
msgObj.style.background = "white";
|
|
|
msgObj.style.border = "1px solid " + bordercolor;
|
|
|
- msgObj.style.position = "absolute";
|
|
|
+ msgObj.style.position = "fixed";
|
|
|
msgObj.style.left = "50%";
|
|
|
msgObj.style.font = "15px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
|
|
|
//窗口距离左侧和顶端的距离
|