소스 검색

web端 热点标题超长时不用省略号

任一存 2 년 전
부모
커밋
e16076fd3b
1개의 변경된 파일5개의 추가작업 그리고 6개의 파일을 삭제
  1. 5 6
      src/views/HomeWeb.vue

+ 5 - 6
src/views/HomeWeb.vue

@@ -30,8 +30,9 @@
         :style="{
           backgroundImage: `url(${titleBottomLine})`,
         }"
-        v-html="hotspotLocalInfo.title"
-      />
+      >
+        及时反馈萨克利夫塑料袋放进开始
+      </h1>
       <div
         class="textInfo"
       >
@@ -482,15 +483,13 @@ export default {
     background-repeat: no-repeat;
     background-position: center center;
     > h1 {
+      text-align: center;
       position: absolute;
-      top: 211px;
+      top: 150px;
       left: 44px;
       max-width: 418px;
       font-size: 38px;
       font-family: DFLiShuW7;
-      overflow: hidden;
-      white-space: pre;
-      text-overflow: ellipsis;
       letter-spacing: 5px;
       padding-left: 10px;
       padding-right: 10px;