浏览代码

修改问题

tangning 2 年之前
父节点
当前提交
c8fc642600
共有 1 个文件被更改,包括 6 次插入0 次删除
  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;
       align-items: center;
       line-height: 30px;
       line-height: 30px;
       font-size: 14px;
       font-size: 14px;
+      span{
+        max-width: 70%;
+        overflow:hidden;        //超出的文本隐藏
+        text-overflow:ellipsis; //用省略号显示
+        white-space:nowrap; 
+      }
       // margin-bottom: 8px;
       // margin-bottom: 8px;
     }
     }