Windows phone 7 网页中的链接在Windows phone webbrowser中不起作用

Windows phone 7 网页中的链接在Windows phone webbrowser中不起作用,windows-phone-7,webbrowser-control,Windows Phone 7,Webbrowser Control,我正在Windows phone 7中使用Web浏览器控件,我希望在页面中导航为 <ul> <li> <a href="#chapter-1_xhtml">Section 1</a> </li> <li> <a href="#chapter-2_xhtml">Section 2</a> </li> </ul> 然后我用 <a nam

我正在Windows phone 7中使用Web浏览器控件,我希望在页面中导航为

<ul>
 <li>
    <a href="#chapter-1_xhtml">Section 1</a>
 </li>
 <li>
    <a href="#chapter-2_xhtml">Section 2</a>
 </li>
</ul>
然后我用

<a name="chapter-1_xhtml" id="chapter-1_xhtml"></a>
...............The Div and other code..............
<a name="chapter-2_xhtml" id="chapter-2_xhtml"></a>
...............The Div and other code..............

Div和其他代码。。。。。。。。。。。。。。
Div和其他代码。。。。。。。。。。。。。。
它在桌面浏览器中工作得很好,但当我在Windows phone emulator中运行相同的代码时,它就不工作了,在一次猛推之后,它就呆在那里了


通过将函数添加到Html中,可以提前使用Thanx。

function ScrollTo(Id) {
        document.getElementById(Id).scrollIntoView();
    }
在单击按钮时调用下面的代码实现了我的目标

this.webBrowser.InvokeScript("ScrollTo", "chapter-1_xhtml");