فهرست منبع

设置最小宽度

wyq 3 سال پیش
والد
کامیت
c83a26d4c5
6فایلهای تغییر یافته به همراه13 افزوده شده و 8 حذف شده
  1. 1 1
      src/css/informationOut.less
  2. 3 2
      src/css/print.css
  3. 2 0
      src/css/staticInfo.less
  4. 3 3
      src/html/staticInfo.html
  5. 1 1
      src/js/informationOut.js
  6. 3 1
      src/js/staticInfo.js

+ 1 - 1
src/css/informationOut.less

@@ -33,7 +33,6 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
   .titleH2 {
     font-size: 18px;
     position: relative;
-    height: 18px;
     line-height: 17px;
     background: #fff;
     padding-right: 6px;
@@ -416,6 +415,7 @@ div,li,span,i,p,h1,h2,h3,h4,h5,pre{
   margin-bottom: 6px;
   .item-list{
     padding: 0 21px;
+    color: #666666;
     .item-title,.item-titles{
       font-size: 14px;
       font-weight: 400;

+ 3 - 2
src/css/print.css

@@ -34,6 +34,7 @@
     display: inline-block;
   }
   .radio {
+    min-width: 150px;
     display: flex;
     margin: 5px;
     margin-right: 25px;
@@ -61,11 +62,11 @@
     font-weight: 500;
     color: #333333;
     display: none;
-    margin: 0 75px;
+    margin: 0;
     text-align: center;
   }
   .result_box{
-    padding:25px 56px;
+    margin:0;
     display: inline-block;
   }
   .result_left{

+ 2 - 0
src/css/staticInfo.less

@@ -356,6 +356,7 @@
   margin-bottom: 6px;
   .item-list{
     padding: 0 21px;
+    color: #666666;
     .item-title,.item-titles{
       font-size: 14px;
       font-weight: 400;
@@ -371,6 +372,7 @@
         margin: 5px;
         margin-right: 25px;
         float: left;
+        min-width: 150px;
         label{
           font-weight: 400;
           color: #666666;

+ 3 - 3
src/html/staticInfo.html

@@ -32,7 +32,7 @@
       <div class="anchors">
         <div class="a-circle"></div>
         <ul></ul>
-        <div class="a-circle"></div>
+        <div class="a-circle a-circle-2"></div>
       </div>
     </div>
   </div>
@@ -42,7 +42,7 @@
       <div class="anchors">
         <div class="a-circle"></div>
         <ul></ul>
-        <div class="a-circle"></div>
+        <div class="a-circle a-circle-2"></div>
       </div>
     </div>
   </div>
@@ -53,7 +53,7 @@
       <div class="anchors">
         <div class="a-circle"></div>
         <ul></ul>
-        <div class="a-circle"></div>
+        <div class="a-circle a-circle-2"></div>
       </div>
     </div>
   </div>

+ 1 - 1
src/js/informationOut.js

@@ -604,7 +604,7 @@ function adjustHeight() {
 }
 function adjustWidth() {
   var wt = window.innerWidth || document.documentElement.clientWidth;
-  $(".titleH2").width(wt - 0.2 * wt - 33 - 200 - 17 - 40 - 15 + 'px')
+  // $(".titleH2").width(wt - 0.2 * wt - 33 - 200 - 17 - 40 - 15 + 'px')
   $(".content .infos").width(wt - 155 - 33 - 17 - 40 - 15 + 'px');
 }
 $(window).on('resize', function () {

+ 3 - 1
src/js/staticInfo.js

@@ -238,7 +238,9 @@ function getprinting() {
     $('.scalebot').hide()
     $('#Print').css({
       'height': 'auto', //高度自动
-    }).print(); 
+    }).print({
+      title: '我是你爹',
+    }); 
     $('.foot').show()
     $('.scalebot').show()
     $('#Print').css({