1
我目前在PhoneGap上制作一个Android应用程序,并且无法连接图像,所以一旦点击它就会将用户转到同一页上的不同div,我不会想要制作另一个HTML文件只是为了一点点的JavaScript。当我在android模拟器中测试它时,链接似乎不起作用,因为如果我改变他链接到一个index.html它的作品。任何帮助都会很棒。Eclipse PhoneGap HTML div链接不工作
<div data-role="page" id="workpage">
<div data-role="header">
<h1>Work</h1>
</div>
<div data-role="content">
<div data-role="navbar">
<a href="index.html">Back</a>
</div>
<a href="#work1"><img src="work/example1.png" id="content"></a>
<div data-role="navbar">
<a href="index.html">Back</a>
</div>
<div data-role="footer">
<h4>© 2013 Nick Willcox</h4>
</div>
</div>
<div data-role="page" id="work1">
<div data-role="header">
<h1>Work</h1>
</div>
<div data-role="content">
<div data-role="navbar">
This was the first website I created, its purpose was to be a small business card which shown a little information about myself. I used HTML4, Photoshop and CSS.
<a href="work.html">Back</a>
</div>
</div>
<div data-role="footer">
<h4>© 2013 Nick Willcox</h4>
</div>
任何帮助将是非常美妙的。
它字面上只需点击该链接,它开辟了像一个全新的窗口,没有在所有 – Nick
滚动如果你的形象,你的DIV是在同一页面上,当用户点击图像时,您应该滚动到要显示的div,对吧?或者我不明白你的问题。 – caiocpricci2
我认为你误解了它,在PhoneGap中它应该像普通链接一样加载div。 – Nick