内容隐藏而不会溢出隐藏

时间:2014-07-01 18:21:28

标签: jquery html css html5 css3

我使用了一个div内容,我想隐藏最后3行内容而不使用溢出隐藏。

我们可以使用任何其他属性接受溢出隐藏。

如果有任何解决方案,请告诉我。

谢谢

1 个答案:

答案 0 :(得分:0)

将您想要隐藏的内容包含在span标记中并使用display: none。在您的情况下,这可能看起来像:

<div>
    Visible stuff
    goes here
    <span style="display: none;">
        Last three
        lines of your
        content to hide
    </span>
</div>
相关问题