更新:新闻展示标题添加title属性

virtual
zwesy 2020-12-08 18:10:43 +08:00
parent 3488c86fca
commit ce194295d5
4 changed files with 9 additions and 6 deletions

View File

@ -31,7 +31,7 @@
<div class="pull-right"> <div class="pull-right">
<div class="imgs"><img src="{:getImgSrc($item, '__IMG__/default_bg.jpg')}" ></div> <div class="imgs"><img src="{:getImgSrc($item, '__IMG__/default_bg.jpg')}" ></div>
<div class="info"> <div class="info">
<span>{$item['title'] ?? ''}</span> <span title="{$item['title'] ?? ''}">{$item['title'] ?? ''}</span>
<p>{:nl2br($item['summary'] ?? '')}</p> <p>{:nl2br($item['summary'] ?? '')}</p>
<i>了解详情+</i> <i>了解详情+</i>
</div> </div>

View File

@ -26,7 +26,7 @@
<div class="pull-right"> <div class="pull-right">
<div class="imgs"><img src="{:getImgSrc($item, '__IMG__/default_bg.jpg')}" ></div> <div class="imgs"><img src="{:getImgSrc($item, '__IMG__/default_bg.jpg')}" ></div>
<div class="info"> <div class="info">
<span>{$item['title'] ?? ''}</span> <span title="{$item['title'] ?? ''}">{$item['title'] ?? ''}</span>
<p>{:nl2br($item['summary'] ?? '')}</p> <p>{:nl2br($item['summary'] ?? '')}</p>
<i>了解详情+</i> <i>了解详情+</i>
</div> </div>
@ -56,7 +56,7 @@
<div class="pull-right"> <div class="pull-right">
<div class="imgs"><img src="{:getImgSrc($item, '__IMG__/default_bg.jpg')}" ></div> <div class="imgs"><img src="{:getImgSrc($item, '__IMG__/default_bg.jpg')}" ></div>
<div class="info"> <div class="info">
<span>{$item['title'] ?? ''}</span> <span title="{$item['title'] ?? ''}">{$item['title'] ?? ''}</span>
<p>{:nl2br($item['summary'] ?? '')}</p> <p>{:nl2br($item['summary'] ?? '')}</p>
<i>了解详情+</i> <i>了解详情+</i>
</div> </div>
@ -81,7 +81,10 @@
<ul> <ul>
{if isset($cateList['dynamics']['items']) && count($cateList['dynamics']['items']) > 0} {if isset($cateList['dynamics']['items']) && count($cateList['dynamics']['items']) > 0}
{foreach $cateList['dynamics']['items'] as $item} {foreach $cateList['dynamics']['items'] as $item}
<li><a href="{:url('article/detail', ['id'=>$item['id']])}"><span>{$item['title'] ?? ''}</span><i>{$item['create_time']|date="Y年m月d日"}</i></a></li> <li><a href="{:url('article/detail', ['id'=>$item['id']])}">
<span title="{$item['title'] ?? ''}">{$item['title'] ?? ''}</span>
<i>{$item['create_time']|date="Y年m月d日"}</i></a>
</li>
{/foreach} {/foreach}
{/if} {/if}
</ul> </ul>

View File

@ -26,7 +26,7 @@
{if isset($prev) && count($prev) >0} {if isset($prev) && count($prev) >0}
<a href="{:url('article/detail', ['id' => $prev.id, 'source'=>$currentCateId])}">上一篇</a> <a href="{:url('article/detail', ['id' => $prev.id, 'source'=>$currentCateId])}">上一篇</a>
{/if} {/if}
{if (isset($prev) && count($prev) >0) && (isset($next) && count($next) >0)}&emsp;/&emsp;{/if} {if (isset($prev) && count($prev) >0) && (isset($next) && count($next) >0)}/{/if}
{if isset($next) && count($next) >0} {if isset($next) && count($next) >0}
<a href="{:url('article/detail', ['id' => $next.id, 'source'=>$currentCateId])}">下一篇</a> <a href="{:url('article/detail', ['id' => $next.id, 'source'=>$currentCateId])}">下一篇</a>
{/if} {/if}

View File

@ -45,7 +45,7 @@
<div class="pull-right"> <div class="pull-right">
<ul> <ul>
{foreach $honor.items as $item} {foreach $honor.items as $item}
<li>{$item.title}</li> <li title="{$item.title}">{$item.title}</li>
{/foreach} {/foreach}
</ul> </ul>
</div> </div>