A5下载 - 努力做内容最丰富最安全的下载站!

A5站长下载站

当前位置:A5下载 > 源码技巧 > discuz > DISCUZ教程之如何让网站的x默认宽屏显示

DISCUZ教程之如何让网站的x默认宽屏显示

时间:2015-05-04 11:36作者:zhao人气:67

对模板文件进行过修改的朋友可以这样修改,在template/default/common/header.htm

找到

<!--{if !empty($_G['cookie']['widthauto']) && empty($_G['disabledwidthauto'])}-->

<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}-->

改为下面的代码,其实就是去掉了判断

<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)"><!--{if empty($_G['cookie']['widthauto'])}-->{lang switch_wide}<!--{else}-->{lang switch_narrow}<!--{/if}--></a>

替换为下面的代码

<a href="javascript:;" onClick="widthauto(this)"><!--{if empty($_G['cookie']['widthauto'])}-->{lang switch_narrow}<!--{else}-->{lang switch_wide}<!--{/if}--></a>

更新缓存

标签DISCUZ,教程,如何,站的,默认,宽屏,显示,模板,文件

相关下载

查看所有评论+

网友评论

网友
您的评论需要经过审核才能显示

热门阅览

最新排行

公众号