0

我正在阅读并遵循 Jonathan Stark 的Building iPhone Apps with HTML, CSS, and JavaScript中的练习。

我在错误控制台中遇到了一些错误,但我不知道如何修复它。

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

请帮忙
谢谢~

4

1 回答 1

0

这似乎更像是一个警告而不是错误。我怀疑您使用的 jQTouch 版本比书中的版本高。jQT 的早期版本有直接在下面的页面body,例如

<body>
  <div id="page1"></div>
  <div id="page2"></div>
</body>

但是 jQT 的更高版本在 下有页面div#jqt,因此允许包含固定的导航栏,例如标签栏控件:

<body>
  <div id="jqt">
    <div id="page1"></div>
    <div id="page2"></div>
  </div>
  <!-- you could have something fixed navigation element here -->
</body>
于 2011-08-14T22:47:08.447 回答