對模板文件進行過修改的朋友可以這樣修改,在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>
更新緩存
更多信息請查看IT技術專欄