使用道具 举报
原帖由 pcload 于 2008-2-21 15:22 发表 你看他原来的模板 自己改么
<div class="models-articlelist"> <!--{if !empty($listarr)}--> <!--{loop $listarr $key $value}--> <div class="models-article"> <p class="thumb"><a href="$value[ss_url]" target="_blank" title="$value[subject]"><img src="$value[ss_imgurl]" alt="$value[subject]" /></a></p> <div class="models-articlelistinfo"> <p class="title"><a href="$value[ss_url]" target="_blank">$value[subject]</a></p> <!--{if !empty($columnsinfoarr)}--> <ul> <!--{loop $columnsinfoarr $tmpkey $tmpvalue}--> <!--{if !is_array($value[$tmpkey])}--> <!--{if strlen($value[$tmpkey]) > 0}--> <li><em>$tmpvalue[fieldcomment]:</em> <!--{if $tmpvalue[formtype]!='timestamp' }--> <a href="$siteurl/m.php?name=$modelsinfoarr[modelname]&mo_$tmpkey=<!--{eval echo rawurlencode($value[$tmpkey]);}-->">$value[$tmpkey]</a> <!--{else}--> #date("m月d日 H:i", $value[$tmpkey])# <!--{/if}--> </li> <!--{/if}--> <!--{else}--> <li class="maxcontent"><em>$tmpvalue[fieldcomment]:</em> <!--{loop $value[$tmpkey] $dkey $dvalue}--> <!--{if $tmpvalue[formtype]=='textarea' }--> $dvalue <!--{else}--> <a href="$siteurl/m.php?name=$modelsinfoarr[modelname]&mo_$tmpkey=<!--{eval echo rawurlencode($dvalue);}-->">$dvalue</a> <!--{/if}--> <!--{/loop}--> </li> <!--{/if}--> <!--{/loop}--> </ul> <!--{/if}--> </div> </div> <!--{/loop}--> <!--{/if}--> </div>
/*搜索列表*/ .models-articlelist{background:url(models_line_t.jpg) repeat-x left top; margin-top:10px;} .models-article{background:url(models_line_x.gif) repeat-x center bottom; min-height:100px;height:auto !important;height:100px; padding:10px 0;} /*\*/ * html .models-article{ height: 1%; }/**/ *> .models-article{ overflow: hidden; } .models-article .thumb{width:100px; height:100px;text-align:center;float:left; overflow:hidden;margin:0 8px;} .models-article img {max-width: 100px; max-height: 100px; width: expression(this.width > 100 && this.width > this.height ? 100 : true); height: expression(this.height > 100 ? 100 : true); font-size: 12px; } @media all and (min-width: 0px){ .models-article img { width: 100px; height: 100px; } } /*for Opera Only*/ .models-articlelistinfo{ width:560px;overflow:hidden;} .models-articlelistinfo p{text-align:left;color:#686868;line-height:20px; padding-bottom:2px;} .models-articlelistinfo em{color:#000;} .models-articlelistinfo a{ color:#686868;} .models-articlelistinfo .title a{color:#0093BB;} /*\*/ * html .models-articlelistinfo ul{ height: 1%; }/**/ *> .models-articlelistinfo ul{ overflow: hidden; } .models-articlelistinfo li{float:left;margin:0 8px 8px 0;background:none !important; white-space:nowrap; color:#666;} .models-articlelistinfo .maxcontent {white-space:normal;line-height:18px;width:560px;}
本版积分规则 发表回复 回帖后跳转到最后一页
手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )
GMT+8, 2025-9-14 22:30 , Processed in 0.081694 second(s), 13 queries , Gzip On.
Powered by Discuz! X3.4
Copyright © 2001-2023, Tencent Cloud.