CSS文字溢出overflow处理
2007-09-17 13:44
507 查看
<!doctype html public "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<body>
<style tyep="text/css">
div {margin:5px 0;overflow:hidden;width:200px;}
div.a {border:1px solid red; text-overflow:ellipsis;white-space:nowrap;}
div.b {border:1px solid green; text-overflow:ellipsis;-o-text-overflow:ellipsis;white-space:nowrap;}
div.c {border:1px solid blue; text-overflow:ellipsis;-o-text-overflow:ellipsis;}
</style>
<div class="a">
test somthing here.test somthing here.test somthing here.test somthing here.test somthing here.
</div>
<div class="b">
毒其1发缩短发送毒发缩短发撒阿瑟发送发送发缩短发送毒发斯多夫阿瑟毒发撒test111 1111111111111112133435te st1111111111111111112133435 test111111 111 111111 11121 334353 5345345
</div>
<div class="c">
test1111111111111111112133435test1111111111111111112133435test111111111111111111213343535345345 </div>
<div class="c">
test 11111 1111111 1111112133 435te t111 111111 1111111112133435 test1111111111 111111112 13343 53 5345345
</div>
</body>
</html>
<html>
<body>
<style tyep="text/css">
div {margin:5px 0;overflow:hidden;width:200px;}
div.a {border:1px solid red; text-overflow:ellipsis;white-space:nowrap;}
div.b {border:1px solid green; text-overflow:ellipsis;-o-text-overflow:ellipsis;white-space:nowrap;}
div.c {border:1px solid blue; text-overflow:ellipsis;-o-text-overflow:ellipsis;}
</style>
<div class="a">
test somthing here.test somthing here.test somthing here.test somthing here.test somthing here.
</div>
<div class="b">
毒其1发缩短发送毒发缩短发撒阿瑟发送发送发缩短发送毒发斯多夫阿瑟毒发撒test111 1111111111111112133435te st1111111111111111112133435 test111111 111 111111 11121 334353 5345345
</div>
<div class="c">
test1111111111111111112133435test1111111111111111112133435test111111111111111111213343535345345 </div>
<div class="c">
test 11111 1111111 1111112133 435te t111 111111 1111111112133435 test1111111111 111111112 13343 53 5345345
</div>
</body>
</html>
相关文章推荐
- 溢出文字处理CSS属性——text-overflow、word-break、word-wrap和white-space
- 【CSS】关于CSS盒子模型中的溢出处理方式overflow属性
- css中对于文字溢出时的控制
- 文字溢出时变省略号css
- 探究CSS属性overflow:hidden的作用:隐藏溢出和清除浮动
- html文字溢出处理
- css之文字溢出显示省略号
- DIV+CSS页面设计中的IE6的文字溢出BUG
- div和表格中文字溢出时折行显示的处理
- css 样式文字溢出显示省略号
- overflow溢出处理
- CSS文字溢出换行-单行/多行
- CSS基础:text-overflow:ellipsis溢出文本显示省略号的详细方法
- css实现超长文字省略号处理(单行和多行)
- css+div解决文字溢出控制显示字数
- Css处理文字与图片不能水平居中对齐的问题
- 使用css方法,实现文字字符串截断处理
- CSS文字溢出部分显示为省略号
- CSS学习笔记:溢出文本省略(text-overflow)
- DIV+CSS页面设计中的IE6的文字溢出BUG