Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/asp.net-mvc/17.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Can';发布应用程序时找不到CSS_Css_Asp.net Mvc_Deployment_Publish - Fatal编程技术网

Can';发布应用程序时找不到CSS

Can';发布应用程序时找不到CSS,css,asp.net-mvc,deployment,publish,Css,Asp.net Mvc,Deployment,Publish,我有一个MVC应用程序,当我在VS css中使用调试器时,它可以正常工作。但是当我把它放在测试服务器上时,CSS就不起作用了 以下是我链接它的方式: <link href="@Url.Content("~/Content/Bootstrap/bootstrap-3.1.1-dist/css/bootstrap.css")" rel="stylesheet" type="text/css" /> <link href="@Url.Content("~/Content/style.

我有一个MVC应用程序,当我在VS css中使用调试器时,它可以正常工作。但是当我把它放在测试服务器上时,CSS就不起作用了

以下是我链接它的方式:

<link href="@Url.Content("~/Content/Bootstrap/bootstrap-3.1.1-dist/css/bootstrap.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/style.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/samples.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/Bootstrap/bootstrap-3.1.1-dist/css/bootstrap.css")" rel="stylesheet" type="text/css" />
<link href="@Url.Content("~/Content/themes/base/jquery-ui.css")" rel="stylesheet" type="text/css" />


编辑:

define'不起作用。。。部署中是否缺少文件?你看到404错误了吗?“href”是否为空?能否提供一个再现问题的简化JSFIDLE示例?@ReinderWit css不会链接所有样式。文件存在,但不会被链接。请提供HTML输出和css@ReinderWit我真的不知道该在这个例子里写些什么。我已经复制了我的HTML代码,并在css中对样式进行了div。但我不知道你想怎么做?