图像无法在浏览器中加载 [英] Images won't load in browser

查看:95
本文介绍了图像无法在浏览器中加载的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是视觉工作室的新手,我注意到如果我通过复制和粘贴Google图片中的网址创建图像,那么我的网络应用程序中出现的图像就没有问题了。我运行我的程序,但如果我将Microsoft Paint
文件转换为.gif图像,那么它将不会显示。  有谁知道为什么?

Hi, I'm new to visual studio and I've noticed that if I create an image by copy and pasting a URL from Google Images then I don't have a problem with the images showing up on my web application when I run my program, but if I convert a Microsoft Paint file to a .gif image then it won't show up.  Does anyone know why?

推荐答案

Hi mrao1,

欢迎来到MSDN论坛。

图片无法在浏览器中加载,通常是由于应用程序中定义的图像位置不正确,请查看你$ b $的位置b配置并确保它存在且正确。

不确定如何配置图像,可以在项目下创建文件夹名称'Image',然后将* .gif添加或拖动到此Image文件夹,之后拖动
* .gif进入你想要的代码编辑器页面需要这张图片。

我试图创建一个新的Asp.net Web应用程序-MVC项目span>

I tried to create a new Asp.net web application-MVC project, add a html page, add the *.gif into the html page and view in browser, and it works fine as below:

如果您的图片位置正确且上述方法也不起作用,请转到相应的论坛:
https ://forums.asp.net/ 并开始寻找更专业的支持,因为我们的论坛是讨论VS IDE,谢谢你的理解。

If your image location is right and the above method also not works, please redirect to this appropriate forum: https://forums.asp.net/ and start a new thread to seek for a more professional support, since our forum is to discuss the VS IDE, thank you for your understanding.

最好的问候,

Sara


这篇关于图像无法在浏览器中加载的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆