Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
qishaoxuan committed Jun 17, 2020
1 parent c9e6bac commit 1776f7b
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions docs/ellipsis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,23 @@
}
```

## scss 混合
```scss
@mixin textEllipsis($lineNum) {
@if $lineNum == 1 {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
} @else {
display: -webkit-box;
word-break: break-all;
-webkit-box-orient: vertical;
-webkit-line-clamp: $lineNum; //需要显示的行数
overflow: hidden;
text-overflow: ellipsis;
}
}
```



Expand Down

0 comments on commit 1776f7b

Please sign in to comment.