首页 > 问答 > 独立移动站pc到移动问题(悬赏1元)

独立移动站pc到移动问题(悬赏1元)

[导读]:首页的还好说,直接输入首页网址就行。 meta http-equiv="mobile-agent"content="format=xhtml;url={dede:global.cfg_mobileurl/}/" scripttype="text/javascript"if(window.location.toString().indexOf('pref=padindex')!= -1)...

首页的还好说,直接输入首页网址就行。

<meta http-equiv="mobile-agent"content="format=xhtml;url={dede:global.cfg_mobileurl/}/">

<scripttype="text/javascript">if(window.location.toString().indexOf('pref=padindex')!=
-1){}else{if(/AppleWebKit.*Mobile/i.test(navigator.userAgent) ||
(/MIDP|SymbianOS|NOKIA|SAMSUNG|LG|NEC|TCL|Alcatel|BIRD|DBTEL|Dopod|PHILIPS|HAIER|LENOVO|MOT-|Nokia|SonyEricsson|SIE-|Amoi|ZTE/.test(navigator.userAgent))){if(window.location.href.indexOf("?mobile")<0){try{if(/Android|WindowsPhone|webOS|iPhone|iPod|BlackBerry/i.test(navigator.userAgent)){window.location.href="{dede:global.cfg_mobileurl/}/";}elseif(/iPad/i.test(navigator.userAgent)){}else{}}catch(e){}}}}</script>

封面页、列表页、文章页的这个URL该怎么写......

这个你应该去淘宝找个技术好好的帮你搞一高

###

不太懂dedeCMS   不过看你内容页相对www的路径了。 比如mobile 在template 文件下。就是../mobile/   相对引用 

本文来自投稿,不代表微盟圈立场,如若转载,请注明出处:https://www.vm7.com/a/ask/52917.html