tianyun 3 年之前
父節點
當前提交
036bacb655
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 1 1
      tmp/monkey/AAAAA-复制标题-到memory.js
  2. 2 2
      tmp/monkey/util.js

+ 1 - 1
tmp/monkey/AAAAA-复制标题-到memory.js

@@ -68,7 +68,7 @@
     let styleTag = createEle('style', btnStyle, {type: "text/css"});
 
     // 将按钮图标由原来的img改为了svg,以增强适应性,同时也将对svg的样式设置移到了上面的 btnStyle 中
-    let iconSVG = '<?xml version="1.0" encoding="UTF-8"?><svg width="16" height="16" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" fill="white" fill-opacity="0.01"/><path d="M8 6C8 4.89543 8.89543 4 10 4H30L40 14V42C40 43.1046 39.1046 44 38 44H10C8.89543 44 8 43.1046 8 42V6Z" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"/><path d="M16 20H32" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 28H32" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>';
+    let iconSVG = '<?xml version="1.0" encoding="UTF-8"?><svg width="22" height="22" viewBox="0 0 48 48" fill="none" xmlns="http://www.w3.org/2000/svg"><rect width="48" height="48" fill="white" fill-opacity="0.01"/><path d="M8 6C8 4.89543 8.89543 4 10 4H30L40 14V42C40 43.1046 39.1046 44 38 44H10C8.89543 44 8 43.1046 8 42V6Z" fill="none" stroke="#333" stroke-width="4" stroke-linejoin="round"/><path d="M16 20H32" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/><path d="M16 28H32" stroke="#333" stroke-width="4" stroke-linecap="round" stroke-linejoin="round"/></svg>';
     let btn = createEle('button', '', {id: "copy-title-and-location"});
     btn.innerHTML = '插入标题和地址' + iconSVG;
 

+ 2 - 2
tmp/monkey/util.js

@@ -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";
     //窗口距离左侧和顶端的距离