asp.net – 分类失败.返回未最终内容
|
我已经使我的第一个网站使用MVC 5在本地机器上工作正常,但是当我发布到服务器的一些css没有正确加载. /* Minification failed. Returning unminified contents.
(80,1): run-time error CSS1019: Unexpected token,found '@import'
(80,9): run-time error CSS1019: Unexpected token,found 'url('../Content/dark-skin/skin.css')'
(671,16): run-time error CSS1062: Expected semicolon or closing curly-brace,found ':'
(1288,found ':'
(1680,found '@keyframes'
(1682,5): run-time error CSS1062: Expected semicolon or closing curly-brace,found '50%'
(1685,found '@-webkit-keyframes'
(1687,found '50%'
*/
/* NUGET: BEGIN LICENSE TEXT
*
* Microsoft grants you the right to use these script files for the sole
* purpose of either: (i) interacting through your browser with the Microsoft
* website or online service,subject to the applicable licensing or use
* terms; or (ii) using the files as included with a Microsoft product subject
* to that product's license terms. Microsoft reserves all other rights to the
* files not expressly granted by Microsoft,whether by implication,estoppel
* or otherwise. The notices and licenses below are for informational purposes only.
*
* NUGET: END LICENSE TEXT */
/*!
* Bootstrap v3.0.0
*
* Copyright 2013 Twitter,Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world by @mdo and @fat.
*//*! normalize.css v2.1.0 | MIT License | git.io/normalize */
我知道编译器正在尝试最小化css文件,但是没有这样做.我尝试纠正这些错误,但是在纠正了一些错误后,再次发布错误看起来是一样的,就像没有选择我的更改. 最简单的事情是使用bootstrap.css文件,我对网站的目的稍作修改.发布时,更改不在包文件中. Bootstrap服务器是否有可能不是我的项目? bundles.Add(new StyleBundle("~/Content/cssmain").Include(
"~/Content/bootstrap.css","~/Content/site.css","~/Content/ilightbox.css","~/Content/bannerscollection_zoominout.css"));
我也尝试使用Web应用程序自己做细化,但是我的更改不可见,文件看起来不是很细致. 任何帮助是赞赏 解决方法我通过做两件事情解决了捆绑bootstrap.css的问题:>将bootstrap.css首先包含在包中.问题中的代码示例已经这样做了,但我没有. 请注意,如果您使用特定的主题,请使用主题提供的文件替换bootstrap.css和bootstrap.min.css.以下是我的项目中使用spacelab主题的工作代码: bundles.Add(new StyleBundle(GetStyleBundlePath("bootstrap")).Include(
"~/Content/3rdParty/bootstrap.spacelab.css","~/Content/3rdParty/bootstrap-datepicker.css","~/Content/3rdParty/bootstrap-multiselect.css")); (编辑:安卓应用网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
- asp.net – 在所选数据源上找不到具有该名称的字段或属性
- 在ASP.Net MVC中控制JsonResult中的序列化器也称为Json函数
- .net core azure部署失败:项目文件不存在
- mvc-mini-profiler – MVC MiniProfiler与ASP.NET MVC 4
- asp.net-mvc-4 – 同一网站的不同域的robots.txt文件
- asp.net – IIS配置错误 – 此配置部分不能用于此路径
- asp.net – 在telerik网格的列中使用控件
- asp.net-mvc – ASP.Net MVC中的线程安全性
- 组合密钥资源REST服务
- 使用asp.net中的web api通过http进行身份验证
- asp.net-mvc – ASP.NET MVC3 IIS无法获取加载样
- asp.net – Razor base type / Templated Razor使
- asp.net-mvc – ASP MVC3在actionlink中插入html
- asp.net-core – CoreCLR中的哈希算法
- asp.net – HTML敏捷包删除break标签关闭
- ASP.NET MVC 3可以在ASP.NET 3.5网站中运行吗?
- 如何在ASP.NET MVC 4中选择自动完成文本字段值时
- 我可以首先使用EF代码和.net核心生成迁移脚本
- ASP.NET报告系统
- asp.net – System.Data.OleDb.OleDbException:
