MVC中的图片网址问题 [英] Image url issue in MVC

查看:118
本文介绍了MVC中的图片网址问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有imageURl-

[ ^ ]



如何用剃刀展示

显示错误图片



我尝试过:



[ ^ ]

I have imageURl-
[^]

How can i show in razor
Its showing error image

What I have tried:

[^]

推荐答案

该图像工作正常,只需使用它,

That image is working fine, just use it like,
<img src="https://www.incuboom.com/global/images/products/large/santa-pinka-dog-harnesspinkaholic-red-3490.jpg" alt="Image" />



这会加载图片,只需确保您拥有 http://在其他之前,它将在您自己的项目网站下查看,例如 www.example.com/www.inc ... 3490.jpg 的。看到这里,小提琴 [ ^ ],它运行正常。


This loads the image, just make sure you have the "http://" before other it will look under your own project website e.g. "www.example.com/www.inc...3490.jpg". See here, fiddle[^], it works fine.


这篇关于MVC中的图片网址问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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