这个布局宽度怎么改?在什么地方?
本帖最后由 ranmeili 于 2015-1-18 17:37 编辑站点:http://ranmeili.com/这是资讯列表页面
站长在吗?能教下这个怎么设置吗? 找到列表模板,直接修改就是了!list模板修改就可以!
修改成下面这个样子,自己对比一下!
首先要结束到
<div id="wp" class="wp"<span style="line-height: 1.5;">></span>的DIV的控制!
修改前:
<!--{template common/header}-->
<!--{lang portalcategory_listtplname}-->
<!--{eval $list = array();}-->
<!--{eval $wheresql = category_get_wheresql($cat);}-->
<!--{eval $list = category_get_list($cat, $wheresql, $page);}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G</a> <em>›</em>
<a href="$_G">{lang portal}</a> <em>›</em>
<!--{loop $cat $value}--> <a href="{$portalcategory[$value['catid']]['caturl']}">$value</a><em>›</em><!--{/loop}-->
$cat
</div>
</div>
<!--{ad/text/wp a_t}-->
<style id="diy_style" type="text/css"></style>
<div class="wp">
<!----><div id="diy1" class="area"></div><!---->
</div>
<div id="ct" class="ct2 wp cl">
<div class="mn">
<!--{ad/articlelist/mbm hm/1}--><!--{ad/articlelist/mbm hm/2}-->
<!----><div id="listcontenttop" class="area"></div><!---->
<div class="bm">
<div class="bm_h cl">
<!--{if $_G && !$_GET['archiveid']}--><a href="portal.php?mod=rss&catid=$cat" class="y xi2 rss" target="_blank" title="RSS">{lang rss_subscribe_this}</a><!--{/if}-->
<!--{if ($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($cat['disallowpublish'])}-->
<a href="portal.php?mod=portalcp&ac=article&catid=$cat" class="y xi2 addnew">{lang article_publish}</a>
<!--{/if}-->
<h1 class="xs2">$cat</h1>
</div>
<!--{if $cat}-->
<div class="bm_c bbda">
{lang sub_category}:
<!--{eval $i = 1;}-->
<!--{loop $cat $value}-->
<!--{if $i != 1}--><span class="pipe">|</span><!--{/if}--><a href="{$portalcategory[$value['catid']]['caturl']}" class="xi2">$value</a><!--{eval $i--;}-->
<!--{/loop}-->
</div>
<!--{/if}-->
<div class="bm_c xld">
<!--{loop $list['list'] $value}-->
<!--{eval $highlight = article_title_style($value);}-->
<!--{eval $article_url = fetch_article_url($value);}-->
<dl class="bbda cl">
<dt class="xs2"><a href="$article_url" target="_blank" class="xi2" $highlight>$value</a> <!--{if $value == 1}-->({lang moderate_need})<!--{/if}--></dt>
<dd class="xs2 cl">
<!--{if $value}--><div class="atc"><a href="$article_url" target="_blank"><img src="$value" alt="$value" class="tn" /></a></div><!--{/if}-->
$value
</dd>
<dd>
<!--{if $value && $cat}-->{lang category}: <label><a href="{$portalcategory[$value['catid']]['caturl']}" class="xi2">$value</a></label><!--{/if}-->
<span class="xg1"> $value</span>
<!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $value['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $value['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']}-->
<span class="xg1">
<span class="pipe">|</span>
<label><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$value">{lang edit}</a></label>
<span class="pipe">|</span>
<label><a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$value" id="article_delete_$value" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a></label>
</span>
<!--{/if}-->
</dd>
</dl>
<!--{/loop}-->
</div>
<!----><div id="listloopbottom" class="area"></div><!---->
</div>
<!--{ad/articlelist/mbm hm/3}--><!--{ad/articlelist/mbm hm/4}-->
<!--{if $list['multi']}--><div class="pgs cl">{$list['multi']}</div><!--{/if}-->
<!----><div id="diycontentbottom" class="area"></div><!---->
</div>
<div class="sd pph">
<div class="drag">
<!----><div id="diyrighttop" class="area"></div><!---->
</div>
<!--{if $cat}-->
<div class="bm">
<div class="bm_h cl">
<h2>{lang category_related}</h2>
</div>
<div class="bm_c">
<ul class="xl xl2 cl">
<!--{loop $cat $value}-->
<li>• <a href="{$portalcategory[$value['catid']]['caturl']}">$value</a></li>
<!--{/loop}-->
</ul>
</div>
</div>
<!--{/if}-->
<div class="drag">
<!----><div id="diy2" class="area"></div><!---->
</div>
</div>
</div>
<div class="wp mtn">
<!----><div id="diy3" class="area"></div><!---->
</div>
<!--{template common/footer}-->
修改后:
<!--{template common/header}-->
<!--{lang portalcategory_listtplname}-->
<!--{eval $list = array();}-->
<!--{eval $wheresql = category_get_wheresql($cat);}-->
<!--{eval $list = category_get_list($cat, $wheresql, $page);}-->
<div id="pt" class="bm cl">
<div class="z">
<a href="./" class="nvhm" title="{lang homepage}">$_G</a> <em>›</em>
<a href="$_G">{lang portal}</a> <em>›</em>
<!--{loop $cat $value}--> <a href="{$portalcategory[$value['catid']]['caturl']}">$value</a><em>›</em><!--{/loop}-->
$cat
</div>
</div>
<!--{ad/text/wp a_t}-->
<style id="diy_style" type="text/css"></style>
<div class="wp">
<!----><div id="diy1" class="area"></div><!---->
</div>
</div>
<div id="ct" class="ct2 wp cl" style="width:1000px">
<div class="mn" style="width:680px;margin-right:20px;">
<!--{ad/articlelist/mbm hm/1}--><!--{ad/articlelist/mbm hm/2}-->
<!----><div id="listcontenttop" class="area"></div><!---->
<div class="bm">
<div class="bm_h cl">
<!--{if $_G && !$_GET['archiveid']}--><a href="portal.php?mod=rss&catid=$cat" class="y xi2 rss" target="_blank" title="RSS">{lang rss_subscribe_this}</a><!--{/if}-->
<!--{if ($_G['group']['allowpostarticle'] || $_G['group']['allowmanagearticle'] || $categoryperm[$catid]['allowmanage'] || $categoryperm[$catid]['allowpublish']) && empty($cat['disallowpublish'])}-->
<a href="portal.php?mod=portalcp&ac=article&catid=$cat" class="y xi2 addnew">{lang article_publish}</a>
<!--{/if}-->
<h1 class="xs2">$cat</h1>
</div>
<!--{if $cat}-->
<div class="bm_c bbda">
{lang sub_category}:
<!--{eval $i = 1;}-->
<!--{loop $cat $value}-->
<!--{if $i != 1}--><span class="pipe">|</span><!--{/if}--><a href="{$portalcategory[$value['catid']]['caturl']}" class="xi2">$value</a><!--{eval $i--;}-->
<!--{/loop}-->
</div>
<!--{/if}-->
<div class="bm_c xld">
<!--{loop $list['list'] $value}-->
<!--{eval $highlight = article_title_style($value);}-->
<!--{eval $article_url = fetch_article_url($value);}-->
<dl class="bbda cl">
<dt class="xs2"><a href="$article_url" target="_blank" class="xi2" $highlight>$value</a> <!--{if $value == 1}-->({lang moderate_need})<!--{/if}--></dt>
<dd class="xs2 cl">
<!--{if $value}--><div class="atc"><a href="$article_url" target="_blank"><img src="$value" alt="$value" class="tn" /></a></div><!--{/if}-->
$value
</dd>
<dd>
<!--{if $value && $cat}-->{lang category}: <label><a href="{$portalcategory[$value['catid']]['caturl']}" class="xi2">$value</a></label><!--{/if}-->
<span class="xg1"> $value</span>
<!--{if $_G['group']['allowmanagearticle'] || ($_G['group']['allowpostarticle'] && $value['uid'] == $_G['uid'] && (empty($_G['group']['allowpostarticlemod']) || $_G['group']['allowpostarticlemod'] && $value['status'] == 1)) || $categoryperm[$value['catid']]['allowmanage']}-->
<span class="xg1">
<span class="pipe">|</span>
<label><a href="portal.php?mod=portalcp&ac=article&op=edit&aid=$value">{lang edit}</a></label>
<span class="pipe">|</span>
<label><a href="portal.php?mod=portalcp&ac=article&op=delete&aid=$value" id="article_delete_$value" onclick="showWindow(this.id, this.href, 'get', 0);">{lang delete}</a></label>
</span>
<!--{/if}-->
</dd>
</dl>
<!--{/loop}-->
</div>
<!----><div id="listloopbottom" class="area"></div><!---->
</div>
<!--{ad/articlelist/mbm hm/3}--><!--{ad/articlelist/mbm hm/4}-->
<!--{if $list['multi']}--><div class="pgs cl">{$list['multi']}</div><!--{/if}-->
<!----><div id="diycontentbottom" class="area"></div><!---->
</div>
<div class="sd pph" style="width:300px;margin-right:20px;">
<div class="drag">
<!----><div id="diyrighttop" class="area"></div><!---->
</div>
<!--{if $cat}-->
<div class="bm">
<div class="bm_h cl">
<h2>{lang category_related}</h2>
</div>
<div class="bm_c">
<ul class="xl xl2 cl">
<!--{loop $cat $value}-->
<li>• <a href="{$portalcategory[$value['catid']]['caturl']}">$value</a></li>
<!--{/loop}-->
</ul>
</div>
</div>
<!--{/if}-->
<div class="drag">
<!----><div id="diy2" class="area"></div><!---->
</div>
</div>
</div>
<div class="wp mtn">
<!----><div id="diy3" class="area"></div><!---->
</div>
<div class="wp">
<!--{template common/footer}-->
模板路径!
template/default/portal/list.htm 这个不是用css里修改的? 谢谢:loveliness::loveliness:
ranmeili 发表于 2015-1-18 17:24
这个不是用css里修改的?
CSS直接嵌入模板的!
页:
[1]