简体   繁体   English

IE图像显示在本地主机中,但不在线(BHO)

[英]IE image is displayed in localhost but not online(BHO)

I am creating a BHO for internet explorer in C#, and I am unable to insert an image. 我正在C#中为Internet Explorer创建BHO,但无法插入图像。 The image is inserted correctly if I save the webpage(facebook.com/myprofile) to localhost and open it in IE, but not online. 如果将网页(facebook.com/myprofile)保存到localhost并在IE中打开它,但不能在线,则可以正确插入该图像。 When I compile the project the image is added to a directory near the currently executing assembly. 当我编译项目时,映像将添加到当前正在执行的程序集附近的目录中。 If I use IE HTML debugger(F12) and check for and follow the src, it is correct, and if I open it in a new tab, the images is displayed. 如果我使用IE HTML调试器(F12)并检查并遵循src,则它是正确的,并且如果我在新选项卡中将其打开,则会显示图像。 why is this happening? 为什么会这样呢? Can it be some sort of permission problem regarding IE or BHO settings? 可能是关于IE或BHO设置的某种权限问题吗? Thx in advance.. 提前谢谢

好吧...我仍然不确定为什么从BHO插入IE时IE无法正确显示该标记,但是我通过使用div模拟img标记并给CSS提供背景图像(全部由BHO插入)来解决了这个问题通过C#代码

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM