CSS中的参考background-image - IIS中的应用程序MVC 3 ASP.NET

kal*_*alu 2 css layout asp.net-mvc-3

我有一个在IIS中托管的应用程序

在此输入图像描述

但是没有使用CSS文件中的背景图像

css从布局中引用:

<link href="@Url.Content("~/Content/themes/NewStyleSUPERADMIN/style.css")" rel="stylesheet" type="text/css" />
Run Code Online (Sandbox Code Playgroud)

style.css中,我有:

background-image: url('/content/themes/NewStyleMeduimHarder/images/Bottom_texture.jpg');
Run Code Online (Sandbox Code Playgroud)

要么

background-image: url('/content/themes/NewStyleMeduimHarder/images/Bottom_texture.jpg');
Run Code Online (Sandbox Code Playgroud)

如何显示图像?

ste*_*eax 6

使用相对路径.部分urls是相对于样式表解决的:

background-image: url(images/Bottom_texture.jpg);
Run Code Online (Sandbox Code Playgroud)