This commit is contained in:
2021-06-08 10:48:28 +08:00
parent ed34892812
commit 53f47ffa9d
3 changed files with 10 additions and 5 deletions

View File

@@ -216,6 +216,7 @@ img {max-width: 100%;}
.IndexExpertNew-tips {margin-bottom: 20px; color: #999; display: block; position: relative;} .IndexExpertNew-tips {margin-bottom: 20px; color: #999; display: block; position: relative;}
.IndexExpertNew-tips::after {position: absolute; content: ''; left: calc(50% - 16px); bottom: -10px; background-color: #ffb993; width: 30px; height: 4px; .IndexExpertNew-tips::after {position: absolute; content: ''; left: calc(50% - 16px); bottom: -10px; background-color: #ffb993; width: 30px; height: 4px;
border-radius: 22px;} border-radius: 22px;}
.second-IndexExpert li {width: calc(50% - 20px); float: left; margin: 10px;}
/* 友情链接 */ /* 友情链接 */

View File

@@ -79,19 +79,23 @@
查看更多>> 查看更多>>
</a> </a>
</div> </div>
<ul class="IndexExpert-ul talentExpert"> <ul class="second-IndexExpert IndexExpertNew" style="margin: 0">
@if (getArticlesBYCate(29,6)->isNotEmpty()) @if (getArticlesBYCate(29,6)->isNotEmpty())
@foreach (getArticlesBYCate(29,6) as $article) @foreach (getArticlesBYCate(29,6) as $article)
<li> <li>
<a href="{{ $article->link }}"> <a href="{{ $article->link }}">
<div class="ce-img IndexExpert-img"> <div class="IndexExpertNew-li">
<span class="IndexExpertNew-tips">客座教授</span>
<div class="IndexExpertNew-title">{{ $article->title }}</div>
</div>
<!-- <div class="ce-img IndexExpert-img">
<span style="background-image: url({{ $article->cover_path }});"></span> <span style="background-image: url({{ $article->cover_path }});"></span>
</div> </div>
<div class="IndexExpert-name"> <div class="IndexExpert-name">
<div class="IndexExpert-title"> <div class="IndexExpert-title">
<span>{{ $article->title }}</span>{{ $article->description }} <span>{{ $article->title }}</span>{{ $article->description }}
</div> </div>
</div> </div> -->
</a> </a>
</li> </li>
@endforeach @endforeach