提交 564d49d7 authored 作者: panwy's avatar panwy

超出省略

上级 3e9763d7
......@@ -91,6 +91,17 @@ input::-webkit-input-placeholder{color: #888; font-size:12px !important;}
.space .tit_xian::after{content: ""; position: absolute; top: 50%; left: 0; right:0; margin-top: -2px; width:100%; height: 3px; background: #000; z-index: 1;}
.space .tit_xian h2{ background: #fff;}
.space .spaceTitle{
overflow: hidden;
text-overflow:ellipsis;
white-space: nowrap;
}
.space .spaceText{display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;}
.home_about{ width: 30%; float: left;}
.home_about .con{ background: #ececec; padding: 30px; height: 450px;}
.home_cases{ width: 70%; float: right;}
......
......@@ -144,8 +144,8 @@
@foreach($news as $new)
<div class="swiper-slide">
<a href="{{url('news_show')}}/{{$new->id}}.html">
<h3>{{$new->title}}</h3>
<p>{{str_limit(strip_tags($new->aDescription),160,'...')}}</p>
<h3 class="spaceTitle">{{$new->title}}</h3>
<p class="spaceText">{{str_limit(strip_tags($new->aDescription),160,'...')}}</p>
<div class="pic"><img src="{{asset($new->pic)}}" class="am-img-responsive"/></div>
<span>learn more</span>
</a>
......
Markdown 格式
0% 或
您添加了 0 人 到此讨论。请谨慎行事。
请先完成此评论的编辑!
请 注册 或者 后发表评论