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)
如何显示图像?
使用相对路径.部分urls是相对于样式表解决的:
background-image: url(images/Bottom_texture.jpg);
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
3946 次 |
| 最近记录: |