Ver Fonte

改首行缩进

zxy há 1 ano atrás
pai
commit
96f614fc7b

+ 3 - 0
nnzwminiapp/pages/publics/leaderInfo/leaderInfo.js

@@ -20,6 +20,9 @@ Page({
         let item = JSON.parse(decodeURIComponent(options.item));
         item.LDLL = item.LDLL.replace(/\<span/gi, '<span class="fontSize"');
         item.LDFG = item.LDFG.replace(/\<span/gi, '<span class="fontSize"');
+
+        item.LDLL = item.LDLL.replace(/\<p/gi, '<p class="indent"');
+        item.LDFG = item.LDFG.replace(/\<p/gi, '<p class="indent"');
         this.setData({
             leaderInfo: item
         })

+ 4 - 0
nnzwminiapp/pages/publics/leaderInfo/leaderInfo.wxss

@@ -18,4 +18,8 @@ scroll-view ::-webkit-scrollbar {
 
 .fontSize {
   font-size: 28rpx!important;
+}
+
+.indent{
+    text-indent: 56rpx !important;
 }