|
@@ -73,7 +73,7 @@ function myCopy(inner_html) {
|
|
|
|
|
|
|
|
|
|
//自动关闭提示框
|
|
//自动关闭提示框
|
|
-function MyAlert(str, sec) {
|
|
|
|
|
|
+function myAlert(str, sec) {
|
|
let bordercolor = "#336699";//提示窗口的边框颜色
|
|
let bordercolor = "#336699";//提示窗口的边框颜色
|
|
let sWidth, sHeight;
|
|
let sWidth, sHeight;
|
|
//获取当前窗口尺寸
|
|
//获取当前窗口尺寸
|
|
@@ -100,7 +100,7 @@ function MyAlert(str, sec) {
|
|
msgObj.style.border = "1px solid " + bordercolor;
|
|
msgObj.style.border = "1px solid " + bordercolor;
|
|
msgObj.style.position = "absolute";
|
|
msgObj.style.position = "absolute";
|
|
msgObj.style.left = "50%";
|
|
msgObj.style.left = "50%";
|
|
- msgObj.style.font = "12px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
|
|
|
|
|
|
+ msgObj.style.font = "15px/1.6em Verdana, Geneva, Arial, Helvetica, sans-serif";
|
|
//窗口距离左侧和顶端的距离
|
|
//窗口距离左侧和顶端的距离
|
|
msgObj.style.marginLeft = "-225px";
|
|
msgObj.style.marginLeft = "-225px";
|
|
//窗口被卷去的高+(屏幕可用工作区高/2)-150
|
|
//窗口被卷去的高+(屏幕可用工作区高/2)-150
|
|
@@ -108,6 +108,7 @@ function MyAlert(str, sec) {
|
|
msgObj.style.textAlign = "center";
|
|
msgObj.style.textAlign = "center";
|
|
msgObj.style.lineHeight = "25px";
|
|
msgObj.style.lineHeight = "25px";
|
|
msgObj.style.zIndex = "10001";
|
|
msgObj.style.zIndex = "10001";
|
|
|
|
+ msgObj.style.minWidth = "300px";
|
|
document.body.appendChild(msgObj);
|
|
document.body.appendChild(msgObj);
|
|
//提示信息标题
|
|
//提示信息标题
|
|
const title = document.createElement("h4");
|
|
const title = document.createElement("h4");
|