Selaa lähdekoodia

修改静态信息小标题高度(2900)

zhangxc 5 vuotta sitten
vanhempi
commit
84d91bea93

+ 4 - 3
src/components/PushItems/DetailsModal/index.less

@@ -45,8 +45,7 @@
 
 .details-content-title-box {
     position: relative;
-    height: 40px;
-    line-height: 40px;
+    line-height: 30px;
     font-size: 20px;
 }
 .details-menu-title-wrapper {
@@ -55,11 +54,13 @@
 }
 
 .details-content-title-name {
-    position: absolute;
+    position: relative;
     font-weight: bold;
     background: #fff;
     padding-right: 5px;
     font-size: 22px;
+    line-height: 30px;
+    display: inline-block;
     z-index: 10;
     color: #1E1E1E;
 }

+ 4 - 2
src/components/TreatDesc/DrugInfo/index.less

@@ -172,16 +172,18 @@
  }
  .details-content-title-box {
     position: relative;
-    height: 40px;
     line-height: 40px;
+    margin: 0 180px 0 0;
     font-size: 20px;
 }
 .details-content-title-name {
-    position: absolute;
+    position: relative;
     font-weight: bold;
     background: #fff;
     padding-right: 5px;
     font-size: 22px;
+    line-height: 30px;
+    display: inline-block;
     z-index: 10;
     color: #1E1E1E;
 }