[英]HTML 'img' Tag do not operate in WebBrowser Control
Sorry for poor English.抱歉英语不好。 Image html tag do not operate and display Xbox in WebBrowser Control.
图片 html 标签在 WebBrowser Control 中不操作和显示 Xbox。 C# Source)
C# 来源)
webBrowser1.Navigate("about:blank");
webBrowser1.Document.OpenNew(false);
webBrowser1.Document.Write(str_html);
webBrowser1.Refresh();
HTML ex) HTML 前)
<html><head></head><body><img src="d:/report/1.bmp" width=1000></body></html>
Try assigning it to an object.尝试将其分配给 object。
This is an example that I used and works:这是我使用和工作的一个例子:
webBrowser1.DocumentText = "<html><head></head><body><img src='C:/srcFolder/imagelocationURL.png'/></body></html>"
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.