javascript - How to identify Ellipsis is being applied so that some links(more) can be suffixed to toggle the ellipsis -


how identify ellipsis being applied links(more) can suffixed toggle ellipsis.

is there detect ellipsis being applied using css or javascript. here need apply ellipsis after 3 lines. css below:

    .test-ellipsis {         color: #6f6f6f;         font-size: 12px;         display: -webkit-box;         -webkit-line-clamp: 3;         -webkit-box-orient: vertical;         overflow: hidden;     } 

you implement using jquery. idea clone , render element , see if rendered width greater original. instead of giving working code, redirect another similar question implements working version.


Comments

Popular posts from this blog

Java 3D LWJGL collision -

spring - SubProtocolWebSocketHandler - No handlers -

methods - python can't use function in submodule -