国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

angular.js - angular content is too long, expand and collapse effect
僅有的幸福
僅有的幸福 2017-05-15 17:02:00
0
3
829

The content in 1.p is too long. When the content is too long and exceeds the display of two lines, a [Show] tag will appear. After expansion, a [Collapse] tag will appear at the end of the content, similar to what QQ Space said. It is said that the full text will be displayed when it is long, and it can be folded when it is finished. I cannot judge the length of the content, and the number of Chinese and English characters displayed in one line is not equal. I would like to have an example with complete effects.

僅有的幸福
僅有的幸福

reply all(3)
洪濤

Let me give you an idea. In HTML, add an inline-block (your expansion and closing) after the text. The css setting is fixed high, and overflow:hidden is exceeded. js determines the height, and adds a class to the outermost layer after exceeding it. This class controls your expansion and closing, and also clears the fixed height and overflow: hidden. Of course, if it is responsive, you have to think of another way.

我想大聲告訴你

angular filter

曾經(jīng)蠟筆沒有小新

Use line-height to specify the height, and use this height to achieve folding and stretching

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template