标题 | DISCUZ教程之如何让网站的x默认宽屏显示 |
内容 | 对模板文件进行过修改的朋友可以这样修改,在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> 更新缓存 |
随便看 |
|
在线学习网考试资料包含高考、自考、专升本考试、人事考试、公务员考试、大学生村官考试、特岗教师招聘考试、事业单位招聘考试、企业人才招聘、银行招聘、教师招聘、农村信用社招聘、各类资格证书考试等各类考试资料。