DISCUZ教程之如何让网站的x默认宽屏显示_discuz教程-查字典教程网
DISCUZ教程之如何让网站的x默认宽屏显示
DISCUZ教程之如何让网站的x默认宽屏显示
发布时间:2016-12-26 来源:查字典编辑
摘要:对模板文件进行过修改的朋友可以这样修改,在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学习
    热门discuz学习
    CMS教程子分类