zblog教程 | 2020年03月27日15时17分17秒 | 评论:0
相关文章对于网站内容的相关性,还会涉及到关键词的布局(一般在网页上针对E型或F型进行布局)、关键词的常用程度(是否经常被用户利用)、关键词密度和频率、关键词链接间的关系、以及关键词之间的距离都会影响到网站相关性。
{$aid=$article.ID} {$tagid=$article.Tags} {$cid=$article.Category.ID} {php} $tagrd=array_rand($tagid); if( sizeof($tagid)>0 && ($tagid[$tagrd]->Count)>1){ $tagi='%{'.$tagrd.'}%'; $where = array(array('=','log_Status','0'),array('like','log_Tag',$tagi),array('<>','log_ID',$aid)); }else{ $where = array(array('=','log_Status','0'),array('=','log_CateID',$cid),array('<>','log_ID',$aid)); } $array = $zbp->GetArticleList(array('*'),$where,array('rand()'=>' '),array(8),''); foreach ($array as $related) { if(($related->ID)!=$aid){ $str .= "<li><span class=\"time\">{$related->Time('m-d')}</span> <p class=\"title\"><a href=\"{$related->Url}\" title=\"{$related->Title}\">{$related->Title}</a></p> </li>"; } } {/php} <div class="newsxg newsxg2"> <ul> {$str} </ul> </div>
.newsxg ul li { height: 24px; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden } .newsxg ul li .title { height: 24px; line-height: 24px; text-overflow: ellipsis; white-space: nowrap; overflow: hidden } .newsxg ul li .time { float: right; margin-left: 5px; margin-right: 10px; } .newsxg2 ul { width: 100%; overflow: hidden; margin-bottom: 0px; } .newsxg2 ul li { float: left; width: 50%; } @media only screen and (max-width:767px) { .newsxg2 ul li { width: 100%; } }
注:喜欢的小伙伴可以尝试一下,另外设置不懂的小伙伴可以联系爱站云付费操作哟!
相关文章
网友点评
本文暂无评论 - 欢迎您
⎛⎝爱站云⎠⎞
AiZhanCloud.Com