1、首先找到 /template/qing/forum/forumdisplay.htm 文件;
2、约19行找到:
<div id="ct" class="wp cl">
|
替换为:
<div id="ct" class="wp cl{if $_G['forum']['allowside']} ct2{/if}"{if $leftside} style="margin-left:{$_G['leftsidewidth_mwidth']}px"{/if}>
<!--{if $leftside}-->
<div id="sd_bdl" class="bdl" onmouseover="showMenu({'ctrlid':this.id, 'pos':'dz'});" style="width:{$_G['setting']['leftsidewidth']}px;margin-left:-{$_G['leftsidewidth_mwidth']}px">
<!--{hook/forumdisplay_leftside_top}-->
<!--[diy=diyleftsidetop]--><div id="diyleftsidetop" class="area"></div><!--[/diy]-->
<div class="tbn" id="forumleftside">
<!--{subtemplate forum/forumdisplay_leftside}-->
</div>
<!--[diy=diyleftsidebottom]--><div id="diyleftsidebottom" class="area"></div><!--[/diy]-->
<!--{hook/forumdisplay_leftside_bottom}-->
</div>
<!--{/if}-->
|
3、保存,后台更新下缓存!
1、首先找到 /template/qing/common/header.htm 文件;
2、在12行下面加上以下代码:
<!--{if widthauto()}-->
<link rel="stylesheet" id="css_widthauto" type="text/css" href="data/cache/style_{STYLEID}_widthauto.css?{VERHASH}" />
<script type="text/javascript">HTMLNODE.className += ' widthauto'</script>
<!--{/if}-->
|
3、保存,后台更新下缓存!
+++++++++++++++++++++++++++++++++++++++++
PS.以上是手动修改的方法,需要修改forumdisplay.htm和header.htm两个文件, 自适应显示器,支持宽窄屏切换,边栏显示
(责任编辑:admin) |