修改了中文换行样式的bug,增加了回车符的识别

This commit is contained in:
Li Jianxuan 2012-06-13 07:16:32 +00:00
parent 10374840cf
commit 0e70c35397
2 changed files with 5 additions and 3 deletions

View File

@ -664,6 +664,7 @@ class DataController extends Zend_Controller_Action
foreach($rows as $k=>$v)
{
$rows[$k]['ts_created'] = date("Y-m-d H:i",strtotime($v['ts_created']));
$rows[$k]['changelog'] = str_replace("\n","</p><p>",$v['changelog']);
}
$data = array("list"=>$rows);
$this->jsonexit($data);

View File

@ -144,11 +144,12 @@ h2 {margin-top:10px;}
.recommend .pagnv .pleft{display:block;width:100%;}
.recommend .pagnv .pright{display:block;width:100%;}
.datalist{overflow:hidden;}
.datalist ul li{margin:5px 0px;padding:5px 0px;background:#f6f6f6;border:1px solid #FFF;border-radius:3px;}
.datalist{overflow:hidden;width:100%;}
.datalist ul{overflow:hidden;}
.datalist ul li{margin:5px 0px;padding:5px 0px;background:#f6f6f6;border:1px solid #FFF;border-radius:3px;word-break:break-all;width:99%;}
.datalist ul li:hover,#datalist ul li:focus{border:1px solid #ccc;background:#fefefe;}
.datalist ul li a{font-size:12px;}
.datalist ul li a.title{font-size:14px;}
.datalist ul li a.more{font-size:12px;}
.datalist ul li p{text-indent:24px;font-size:12px;line-height:24px;}
.datalist ul li p{text-indent:24px;font-size:12px;line-height:24px;word-break:break-all;white-space:normal; }
.datalist ul li p img {vertical-align:middle;}