css文件内容未送达 [英] css file contents not delivered

查看:83
本文介绍了css文件内容未送达的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在site.css文件中,





background-image:url(''../../ Content / themes /base/images/redback.jpg'');





在部署中工作。但是没有进入已发布的网站。

In site.css file,


background-image:url(''../../Content/themes/base/images/redback.jpg'');


working in deployment .but not coming in published site.

推荐答案

相对路径始终是魔鬼的工作。显然你的根是不同的,所以相对路径中断(或图像不存在)。使用绝对路径。
Relative paths are always the work of the devil. Clearly your root is different, so the relative path breaks ( or the image is not there ). Use absolute paths.


您好,



试试这个。



Hi,

Try this.

background-image:url('~/Content/themes/base/images/redback.jpg');





这可能会解决您的问题。



谢谢



This may resolve your problem.

Thanks


这篇关于css文件内容未送达的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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