Prechádzať zdrojové kódy

IE8兼容圆角处理

wyq 4 rokov pred
rodič
commit
ff06af9890
4 zmenil súbory, kde vykonal 199 pridanie a 3 odobranie
  1. 96 0
      src/css/PIE.htc
  2. 11 0
      src/css/staticInfo.less
  3. 88 0
      src/js/PIE.js
  4. 4 3
      src/js/staticInfo.js

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 96 - 0
src/css/PIE.htc


+ 11 - 0
src/css/staticInfo.less

@@ -159,6 +159,7 @@
     margin-left: 30px;
     padding: 15px 0px 15px 20px;
     border-radius: 4px;
+    behavior: url("<%=basePath%>css/PIE.htc");
     border: 1px solid #EDFAFF;
     /*background-color: #EDFAFF;*/
     line-height: 19px;
@@ -184,6 +185,7 @@
   height: 16px;
   background: #fff;
   border-radius: 16px;
+  behavior: url("<%=basePath%>css/PIE.htc");
   position: absolute;
   left: 41px;
   z-index: 1;
@@ -199,6 +201,7 @@
     width: 16px;
     height: 16px;
     border-radius: 8px;
+    behavior: url("<%=basePath%>css/PIE.htc");
     border: 1px solid @staticMainColor;
     background-color: @staticMainColor;
     left: -10px;
@@ -271,6 +274,7 @@
     font-size: 14px;
     color: #333333;
     border-radius: 6px 6px 0px 0px;
+    behavior: url("<%=basePath%>css/PIE.htc");
   }
   .activeTab{
     background: @staticMainColor;
@@ -323,6 +327,7 @@
   /*滚动条里面小方块*/
   width: 6px;
   border-radius: 5px;
+  behavior: url("<%=basePath%>css/PIE.htc");
   background: @staticMainColor;
   height: 100px;
 }
@@ -330,6 +335,7 @@
 .infos::-webkit-scrollbar-track, .anchors::-webkit-scrollbar-track {
   /*滚动条里面轨道*/
   border-radius: 2px;
+  behavior: url("<%=basePath%>css/PIE.htc");
   background: #f0f2f5;
   opacity: .2;
 }
@@ -396,6 +402,7 @@
     height: 34px;
     background: #FFFFFF;
     border-radius: 8px;
+    behavior: url("<%=basePath%>css/PIE.htc");
     border: 1px solid #2A9BD5;
     font-size: 16px;
     font-weight: 400;
@@ -413,6 +420,7 @@
 .result{
   background: #EDFAFF;
   border-radius: 10px;
+  behavior: url("<%=basePath%>css/PIE.htc");
   font-size: 14px;
   font-weight: 500;
   color: #333333;
@@ -428,6 +436,7 @@
       height: 21px;
       background: #2C96E5;
       border-radius: 50%;
+      behavior: url("<%=basePath%>css/PIE.htc");
       display: flex;
       align-items: center;
       justify-content: center;
@@ -455,6 +464,7 @@
       height: 32px;
       background: #FFFFFF;
       border-radius: 4px;
+      behavior: url("<%=basePath%>css/PIE.htc");
       border: 1px solid #333333;
       cursor: pointer;
       & img{
@@ -471,6 +481,7 @@
       height: 32px;
       background: #FFFFFF;
       border-radius: 4px;
+      behavior: url("<%=basePath%>css/PIE.htc");
       border: 1px solid #333333;
       text-align: center;
       line-height: 32px;

Rozdielové dáta súboru neboli zobrazené, pretože súbor je príliš veľký
+ 88 - 0
src/js/PIE.js


+ 4 - 3
src/js/staticInfo.js

@@ -19,6 +19,7 @@ const {
 } = require('./promise.js');
 const $ = require("jquery");
 require("./jquery-migrate");
+require("./PIE");
 const jqprint = require("../js/jquery.PrintArea")
 let printing = require('./../images/printing.png');
 let printing2 = require('./../images/printing2.png');
@@ -286,7 +287,7 @@ function copy(name) {
   $(".copy").click(function () {
     var texts = document.getElementById("result_title").innerText;
     if (texts == '') {
-      Toast('结果为空,无法复制', 500, 'warn')
+      Toast('结果为空,无法复制', 500000000000, 'warn')
       return
     }
     var inputs = document.getElementById("inputs");
@@ -294,7 +295,7 @@ function copy(name) {
     console.log(inputs.value)
     inputs.select(); // 选中文本
     document.execCommand("copy"); // 执行浏览器复制命令
-    Toast('复制成功', 500, 'success')
+    Toast('复制成功', 50000000000, 'success')
     setTimeout(() => {
       window.close()
     }, 500)
@@ -399,7 +400,7 @@ function getResult(pushInfo, textType) {
         $(".foot").css('display', 'block')
       }
     } else {
-      Toast('温馨提示:必填选项不能为空~', 500, 'warn')
+      Toast('温馨提示:必填选项不能为空~', 500000000000000, 'warn')
     }
   })
   $(".printing").hover(