【发布时间】:2013-08-20 03:57:44
【问题描述】:
当 JavaScript 被禁用时,我需要为桌面和移动网站显示不同的消息。
目前我有
<noscript>
<meta http-equiv="Refresh" content="0; URL=/error.html" />
</noscript>
我需要可以做的代码(我使用伪代码)
<noscript>
if desktop
<meta http-equiv="Refresh" content="0; URL=/error.html" />
if mobile
<meta http-equiv="Refresh" content="0; URL=/mobile-error.html" />
</noscript>
谢谢
【问题讨论】:
-
是否可以响应式设计
error.html,使其在所有设备上看起来都不错? -
不行,需要显示不同的内容
标签: javascript noscript