非常感谢楼上的朋友,调用字段我会,可是这个问题,始终弄不好,呵呵,本人菜鸟,连到底是css控制这块还是程序控制这块还没搞明白呢。
以下是代码:
原catecory.html.php文件中的
引用:
<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>
原images/style.css文件中
引用:
/*搜索列表*/
.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;}
请问高手,到底应该改哪句代码、怎么改呢?
[
本帖最后由 驴十三 于 2008-5-18 18:58 编辑 ]