手机
当前位置:查字典教程网 >CMS教程 >discuz >DISCUZ教程之如何让网站的x默认宽屏显示
DISCUZ教程之如何让网站的x默认宽屏显示
摘要:对模板文件进行过修改的朋友可以这样修改,在template/default/common/header.htm找到HTMLNODE.clas...

对模板文件进行过修改的朋友可以这样修改,在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! 2.5 安全码的重置问题

discuz文件结构详解,discuz模板文件介绍

如何设置Discuz!7.0分类信息功能

Discuz 密码错误次数过多导致等待15分钟的解决办法

Discuz有关问题解决办法汇总(Can not write to cache files)

discuz论坛用户通过邮件验证的设置方法[图文]

Discuz!7.0主题回收站功能详解

Discuz!开启使用HTML、主题分类、分类信息的方法

Discuz Bad Request (Invalid Hostname)问题解决方法(Discuz 和DX都适用)

Discuz 7.2 主题列表页模板(Forumdisplay.htm)修改教程

精品推荐
分类导航