最新下载
热门教程
- 1
- 2
- 3
- 4
- 5
- 6
- 7
- 8
- 9
- 10
Discuz在电脑PC访问手机触屏版或“标准版”改为“触屏版”
时间:2015-06-07 编辑:简简单单 来源:一聚教程网
新开发Discuz手机版(触屏)时,在电脑访问查看效果最方便了,在电脑PC访问手机触屏版需要对代码做些修改(修改前请备份相关文件):
1. 在 source\class\discuz\discuz_application.php 中查找
'mobiletpl' => array('1' => 'mobile', '2' => 'touch', '3' => 'wml','yes' => 'mobile'),
并修改为
'mobiletpl' => array('1' => 'touch', '2' => 'touch', '3' => 'wml','yes' => 'touch'),
2.在 static/js/mobile/common.js 中查找
!supporttouch && (window.location.href = 'forum.php?mobile=1');
并注释掉(如下)
//!supporttouch && (window.location.href = 'forum.php?mobile=1');
3. 在浏览器安装User-Agent Switcher插件
如Firefox或chrome插件User-Agent Switcher(如下图所示)
4. 在浏览器中输入网址访问
相关文章
- HTML简单购物数量小程序代码展示 10-31
- html canvas实现弹幕功能 10-31
- HTML中空格表示的意义 10-31
- html area标签解读 10-31
- html使用表单标签实现注册页面代码展示 10-31
- 使用HTML截图并保存为本地图片的代码展示 10-31