对模板文件进行过修改的朋友可以这样修改,在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 6.0上传图片提示“无效的图片文件”解决方案
★ Discuz Bad Request (Invalid Hostname)问题解决方法(Discuz 和DX都适用)
★ DiscuzX发帖默认隐藏附件/图片/链接/视频等设置教程