【发布时间】:2013-06-18 11:39:46
【问题描述】:
我想在 web 浏览器中加载本地 html 文件,背景图像也是本地的。请任何人帮助我如何做到这一点。
我正在使用下面的代码在网络浏览器中加载本地 html 文件。
var rs = Application.GetResourceStream(new Uri("images/Company.html", UriKind.Relative));
using (StreamReader sr = new StreamReader(rs.Stream))
{
this.wb1.NavigateToString(sr.ReadToEnd());
}
我在 html 文件中显示如下背景图片
body{
background: url(bg.jpg) no-repeat;
background-size: 100%;
}
【问题讨论】:
标签: windows-phone-7 windows-phone-8 windows-store-apps windows-phone