tangning il y a 2 ans
Parent
commit
c8fc642600
1 fichiers modifiés avec 6 ajouts et 0 suppressions
  1. 6 0
      src/views/detail/index.vue

+ 6 - 0
src/views/detail/index.vue

@@ -235,6 +235,12 @@ function namePrivate(name) {
       align-items: center;
       line-height: 30px;
       font-size: 14px;
+      span{
+        max-width: 70%;
+        overflow:hidden;        //超出的文本隐藏
+        text-overflow:ellipsis; //用省略号显示
+        white-space:nowrap; 
+      }
       // margin-bottom: 8px;
     }