I want to trying to truncate a long text (in two lines) by using -webkit-line-clamp: 2 property .
But in firefox, the -webkit-line-clamp property doesn't work.
overflow: hidden;
display: -webkit-box;
-webkit-line-clamp: 2;
-webkit-box-orient: vertical;
Can you help me please. My solution works fine in chrome but -webkit-line-clamp doesn't support by firefox
This property was originally implemented in WebKit and has some issues. It got standardized for legacy support. The CSS Overflow Module Level 3 specification also defines a line-clamp property, which is meant to replace this property and avoid its issues.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.