我在这里有一个邮件模板通讯:http: //www.newsletter.vendopor.com/m29-04-13/index2.html
但最后,有一个段落,其中包含该文字:Por favor,envíaestecorreo a las personas que creas le puede ayudar nuestro ...
这段文字,出去的段落(我在CSS中有一个宽度380属性,并继续出去).
它在页面的末尾
我在谷歌搜索过,但找不到解决方案
适用于Chrome,但在Mozilla(最新版本)中,文本即将发布.
非常感谢你的帮助
text-overflow: ellipsis;div {
width:200px;
overflow:hidden;
border:1px solid #f00;
text-overflow:ellipsis;
white-space:nowrap;
}Run Code Online (Sandbox Code Playgroud)
<div>This is very very long text This is very very long text This is very very long text </div>Run Code Online (Sandbox Code Playgroud)
祝好运...
<?php echo substr('your text',0,500); ?>
Run Code Online (Sandbox Code Playgroud)
打印文本的前500个字符
或者当你不想使用php并且只想在到达块的末尾时文本消失时添加overflow:hidden;div块的css
use*_*717 -3
我找到了,这添加到了段落中:\nwhite-space:正常;\n你可以在这里了解一些关于空白的知识:sidar.org/recur/desdi/traduc/es/css/\xe2\x80\xa6 \nit 现在在 mozilla 中工作得很好,谢谢大家!
\n