[英]WP8: How to change the fonts size and family of the contents displayed in webBrowser?
I was developing windows phone 8 app. 我正在开发Windows Phone 8应用程序。 I was displaying local html files in my app using
<phone:webBrowser>
class. 我正在使用
<phone:webBrowser>
类在应用程序中显示本地html文件。 I have changed app's fonts totally. 我完全改变了应用程序的字体。 But, I can't change the font style (size and family) for the content displayed in the webBrowser.
但是,我无法更改webBrowser中显示的内容的字体样式(大小和字体)。 How to change the fonts style for those content ?
如何更改这些内容的字体样式?
The only option that you can go for is with a CSS style sheet. 您可以使用的唯一选项是CSS样式表。 You can embed the style inside the html document and then pass that html file in to web browser.
您可以将样式嵌入html文档中,然后将该html文件传递到Web浏览器中。 It will work
会工作的
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.