如何在移动网络中添加no-js类?

时间:2012-03-12 12:32:06

标签: html5 windows-mobile

我正在使用html5和一些css3构建移动网站,我一直关注的说明建议包括运行Windows Mobile 7的任何人的以下代码:

<!--[if (gt IEMobile 7)|!(IEMobile)]><!--><html class="no-js"><!--<![endif]-->

当我这样做时,虽然当我尝试验证页面时出现以下错误:

Error Line 9, Column 63: Stray end tag html.

    <!--[if (gt IEMobile 7)|!(IEMobile)]><!--><html class="no-js"><!--<![endif]-->

✉
Error Line 9, Column 63: Cannot recover after last error. Any further errors will be ignored.

    <!--[if (gt IEMobile 7)|!(IEMobile)]><!--><html class="no-js"><!--<![endif]-->

验证器是否正确或代码是否正确?如果验证器是正确的,那么编写此异常的正确方法是什么?

感谢。

感谢。

0 个答案:

没有答案
相关问题