乔纳森·斯塔克书中的练习后出现的问题
我正在阅读 Jonathan Stark 的使用 HTML、CSS 和 JavaScript 构建 iPhone 应用程序并进行练习。
我在错误控制台中遇到一些错误,但我不知道如何修复它。
Could not find an element with the id "jqt", so the body id has been set to "jqt". If you are having any problems, wrapping your panels in a div with the id "jqt" might help. jqtouch.js:104
我正在使用 jQTouch b3.1
请帮忙
谢谢~
I was reading and following along exercise in Jonathan Stark's Building iPhone Apps with HTML, CSS, and JavaScript.
I am having some error in the error console but I doesn't know how to fix it.
Could not find an element with the id "jqt", so the body id has been set to "jqt". If you are having any problems, wrapping your panels in a div with the id "jqt" might help. jqtouch.js:104
I am using jQTouch b3.1
Please help
Thanks~
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这看起来更像是警告而不是错误。我怀疑您使用的 jQTouch 版本比书中的版本更高。早期版本的 jQT 的页面直接位于
body
下,例如,但较新版本的 jQT 的页面位于
div#jqt
下,因此允许包含固定的导航栏,例如 tabbar控制:That seems more like a warning than an error. I suspect you're using a later version of jQTouch than the one in the book. Earlier version of jQT has pages directly under
body
, e.g.But later version of jQT has pages under
div#jqt
, so to allow the inclusion of a fixed navigation bar, e.g. tabbar control: