块级别相当于文本溢出:省略号(Block level equivalent of text

编程入门 行业动态 更新时间:2024-10-28 01:12:58
块级别相当于文本溢出:省略号(Block level equivalent of text-overflow:ellipsis)

我想提供一些小的模糊,如果它们太长而不能放入容器中,它们会消失在省略号中。 我想提供一个视觉指示,如果用户跟随文章的链接,则会有更多文本。 我不想使用椭圆图像,但如果需要我可以使用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

更多推荐

本文发布于:2023-07-22 07:01:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1217935.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:省略号   文本   级别   Block   equivalent

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!