应用MVC 3 ASP.NET我有一个应用程序托管在IIS参考背景图像 - 在IIS
而不是从CSS文件工作背景图像
该css是从布局中引用的:
<link href="@Url.Content("~/Content/themes/NewStyleSUPERADMIN/style.css")" rel="stylesheet" type="text/css" />
style.css,我有:
background-image: url('/content/themes/NewStyleMeduimHarder/images/Bottom_texture.jpg');
或
background-image: url('/content/themes/NewStyleMeduimHarder/images/Bottom_texture.jpg');
如何显示图像?
这是为我工作的答案。我将这些图像放在名为“Images”的文件夹中。然后我放入这个:'url(“../ Images/nameofpicture.gif”)'' –