对模板文件进行过修改的朋友可以这样修改,在template/default/common/header.htm
找到
<>
<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>
<>
改为下面的代码,其实就是去掉了判断
<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>
接下来找到
<a href="javascript:;" onclick="widthauto(this)"><>{lang switch_wide}<>{lang switch_narrow}<></a>
替换为下面的代码
<a href="javascript:;" onClick="widthauto(this)"><>{lang switch_narrow}<>{lang switch_wide}<></a>
更新缓存
【DISCUZ教程之如何让网站的x默认宽屏显示】相关文章:
★ Discuz 密码错误次数过多导致等待15分钟的解决办法
★ Discuz有关问题解决办法汇总(Can not write to cache files)
★ Discuz!开启使用HTML、主题分类、分类信息的方法
★ Discuz Bad Request (Invalid Hostname)问题解决方法(Discuz 和DX都适用)
★ Discuz 7.2 主题列表页模板(Forumdisplay.htm)修改教程