【发布时间】:2018-06-30 23:09:50
【问题描述】:
我在Environment.GetFolderPath(Environment.SpecialFolder.Personal) 中的一个名为CachedPosts 的文件夹中拥有index.html 和Posts1 - 10.html。我的目标是加载index.html,其中包含要加载Posts1 - 10.html的href链接。
您可以告诉我使用 Assets 文件夹,但是.. Posts1 - 10.html 和 index.html 正在以编程方式保存。
C# Code:
所以我的问题在于“其他”区域。
index.html 加载,但每当我点击 index.html 内的 href 链接时,它都会加载一个空白页面:/
index.html Code:
<html>
<body>
<a href="Posts1.html"><h2>Interesting Stuff 1</h2></a>
<a href="Posts2.html"><h2>Interesting Stuff 2</h2></a>
</body>
</html>
The Posts Code:
<html>
<body>
<h1>Title: Posts Title</h1>
<p>So this is my first interesting post</p>
</body>
</html>
【问题讨论】:
标签: c# android xamarin webview xamarin.forms