Don't forget(C)
2011-07-28 00:36 科斌 阅读(155) 评论(0) 编辑 收藏 举报text-overflow: ellipsis;使文本超出宽度时以...代替
<style>
div
{
overflow: hidden;//超出部分隐藏
text-overflow: ellipsis;
white-space: nowrap;//设置不换行
width:50px;
}
</style>
<div>sdfsdfsdfsdfsdf</div>
////////////////////////////////////////////////////
//////////////////左右对齐首行缩进///////////////
///////////////////////////////////////////////////
text-indent:2em;
text-align:justify;