Browse Source

免责声明样式修改2

zhouna 3 năm trước cách đây
mục cha
commit
fb8a6283f9
3 tập tin đã thay đổi với 9 bổ sung16 xóa
  1. 1 7
      src/css/informationOut.less
  2. 0 3
      src/html/informationOut.html
  3. 8 6
      src/js/informationOut.js

+ 1 - 7
src/css/informationOut.less

@@ -362,16 +362,10 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
 }
 .footer{
   width: 100%;
-  background: #172238;
-  padding: 4px 0 4px;
-  position: absolute;
-  bottom: 0;
-  z-index: 1;
   p{
-    color:#fff;
+    color:#999;
     text-align: center;
     font-size: 12px;
-    white-space: nowrap;
   }
   span{
     font-size: 12px;

+ 0 - 3
src/html/informationOut.html

@@ -91,9 +91,6 @@
       </div>
     </div>
   </div>
-  <div class="footer">
-    <p><span>免责声明:本知识库提供的医学静态知识仅供医生学习参考。 </span>版权所有:杭州朗通信息技术有限公司 浙ICP备:16000400号-2</p>
-  </div>
 </body>
 
 </html>

+ 8 - 6
src/js/informationOut.js

@@ -166,7 +166,10 @@ function renderContent(list, contentWrapClassName) {
     $(`.${contentWrapClassName} .infos`).append(str);
     $(`.${contentWrapClassName} .anchors ul`).append(anchors);
   }
-
+  var footer = `<div class="footer">
+    <p><span>免责声明:本知识库提供的医学静态知识仅供医生学习参考。 </span>版权所有:杭州朗通信息技术有限公司 浙ICP备:16000400号-2</p>
+  </div>`;
+  $(`.${contentWrapClassName} .infos`).append(footer);
   function addScrollEvent() {
     var scrollTop = $(`.${contentWrapClassName} .infos`).scrollTop()
 
@@ -618,16 +621,15 @@ function bindTabClick() {
   })
 }
 function adjustHeight() {
-  const extHt = window.opener?60:0;     //网页查看时隐藏页脚
   var ht = window.innerHeight || document.documentElement.clientHeight;
-  $(".content").height(ht - 120 + "px");
-  $(".content .infos").height(ht - 130 + "px");
-  $(".content .anchors").height(ht - 177 + "px");
+  $(".content").height(ht - 82 + "px");
+  $(".content .infos").height(ht - 96 + "px");
+  $(".content .anchors").height(ht - 135 + "px");
 }
 function adjustWidth() {
   var wt = window.innerWidth || document.documentElement.clientWidth;
   // $(".titleH2").width(wt - 0.2 * wt - 33 - 200 - 17 - 40 - 15 + 'px')
-  $(".content .infos").width(wt - 155 - 33 - 17 - 40 - 15 + 'px');
+  $(".content .infos").width(wt - 155 - 40 + 'px');
 }
 $(window).on('resize', function () {
   adjustHeight()