我想提供一些小的模糊,如果它们太长而不能放入容器中,它们会消失在省略号中。 我想提供一个视觉指示,如果用户跟随文章的链接,则会有更多文本。 我不想使用椭圆图像,但如果需要我可以使用jQuery。 如果可能的话,我的偏好是完全在CSS3中完成。
我找到了文本溢出:省略号属性/值,结合溢出:隐藏和空白:nowrap允许单行版本,但多行怎么样? 在我的情况下。
这些或其他属性/值对是否允许在严格的CSS中完成?
任何帮助表示赞赏。
I want to offer small blurbs that will disappear into ellipsis if they are too long for the container div they are put into. I would like to offer a visual indication that there is more text if a user follows the link to the article. I don't want to use an ellipse image, but I can use jQuery if required. My preference is to do it entirely in CSS3, if possible.
I found the text-overflow:ellipsis property / value, combined with overflow:hidden and white-space:nowrap allow for a single-line version of this, but what about multi-lines? vs. in my case.
Will these, or another property / value pair allow for this to be done in strictly CSS?
Any help is appreciated.
最满意答案
试试这个小提琴 不是我的
或者有dotdotdot插件
Try this Fiddle not mine
or there is the dotdotdot plugin
更多推荐
发布评论