sunran %!s(int64=3) %!d(string=hai) anos
pai
achega
96b713b2c4
Modificáronse 1 ficheiros con 10 adicións e 1 borrados
  1. 10 1
      src/views/zhulao/views/home/newsDetails.vue

+ 10 - 1
src/views/zhulao/views/home/newsDetails.vue

@@ -1,7 +1,7 @@
 <template>
   <div class="main">
     <van-nav-bar title="资讯详情" @click-left="$router.back()" left-arrow fixed placeholder safe-area-inset-top />
-    <div v-html="content"></div>
+    <div class="contentHtml" v-html="content"></div>
   </div>
 </template>
 <script>
@@ -34,4 +34,13 @@ export default {
     padding: 0 !important;
   }
 }
+</style>
+<style lang="scss">
+.contentHtml {
+  overflow: hidden;
+  img {
+    max-width: calc(100% - 60px);
+    height: auto;
+  }
+}
 </style>