소스 검색

新增公共样式

huangtao 4 년 전
부모
커밋
2ea9569332
1개의 변경된 파일27개의 추가작업 그리고 0개의 파일을 삭제
  1. 27 0
      src/assets/css/common.less

+ 27 - 0
src/assets/css/common.less

@@ -24,6 +24,33 @@
   background-color: #555;
 }
 
+// 超行省略一行
+.line_number1 {
+  display: -webkit-box !important;
+  -webkit-box-orient: vertical !important;
+  -webkit-line-clamp: 1 !important;
+  overflow: hidden !important;
+  text-overflow: ellipsis !important;
+}
+
+// 超行省略二行
+.line_number2 {
+  display: -webkit-box !important;
+  -webkit-box-orient: vertical !important;
+  -webkit-line-clamp: 2 !important;
+  overflow: hidden !important;
+  text-overflow: ellipsis !important;
+}
+
+// 超行省略三行
+.line_number3 {
+  display: -webkit-box !important;
+  -webkit-box-orient: vertical !important;
+  -webkit-line-clamp: 3 !important;
+  overflow: hidden !important;
+  text-overflow: ellipsis !important;
+}
+
 .iconFont {
   font-size: 20px;
 }