diff --git a/application/wechat/view/news.form.html b/application/wechat/view/news.form.html index 5ea98274b..1b1f52924 100644 --- a/application/wechat/view/news.form.html +++ b/application/wechat/view/news.form.html @@ -308,8 +308,8 @@ position: absolute; margin-left: -1px; text-overflow: ellipsis; + max-height:6em; background: rgba(0, 0, 0, 0.7); - white-space:nowrap; } .news-right .layui-input { diff --git a/application/wechat/view/news.index.html b/application/wechat/view/news.index.html index 2689d4e98..b277aac16 100644 --- a/application/wechat/view/news.index.html +++ b/application/wechat/view/news.index.html @@ -75,10 +75,10 @@ #news_box {position:relative;} #news_box .news_item {position:relative;left:0;top:0;padding:5px;border:1px solid #ccc;box-sizing:content-box;margin:10px;width: 300px} #news_box .news_item .news_articel_item{background-position:center center;background-size:100%;position:relative;height:150px;width:100%;overflow:hidden;} - #news_box .news_item .news_articel_item p {padding:5px;font-size:12px;color:#fff;white-space:nowrap;overflow:hidden;text-overflow: ellipsis;background: rgba(0, 0, 0, 0.7);position:absolute;width: 100%;bottom:0} + #news_box .news_item .news_articel_item p {padding:5px;max-height:5em;font-size:12px;color:#fff;overflow:hidden;text-overflow: ellipsis;background: rgba(0, 0, 0, 0.7);position:absolute;width: 100%;bottom:0} #news_box .news_item .news_articel_item.other{height:50px;padding:5px 0;} #news_box .news_item .news_articel_item .left-image{width:50px;height:50px;position:relative;float:left;background-position:center center;background-size:100%;overflow:hidden;} - #news_box .news_item .news_articel_item .right-text{float:left;width:250px;padding-right:10px;line-height:45px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} + #news_box .news_item .news_articel_item .right-text{float:left;width:250px;padding-right:10px;overflow:hidden;text-overflow:ellipsis;} #news_box .news_item .hr-line-dashed:last-child{display:none} #news_box .hr-line-dashed{margin:6px 0 1px 0} #news_box .news_tools{top:0;z-index:80;color:#fff;width:312px;margin-left:-6px;position:absolute;background: rgba(0, 0, 0, 0.7);text-align:right;padding:0 5px;line-height: 38px;}