我修改了main.min.css和main.full.css(設置另一種顏色的背景)並且頁面現在無法呈現css。這只是一個HTML。無法在ASP.NET中呈現css
母版頁:(縮短版的鏈接)
<%@ Master Language="C#" AutoEventWireup="true" CodeBehind="ZASshop.master.cs" Inherits="ZASshop.NET.ZASshop" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajaxToolkit" %>
<%@ Register Assembly="ZAScontrols" Namespace="ZAScontrols" TagPrefix="zas" %>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" >
<head id="MasterHead" runat="server">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="/App_Firma/css/main.min.css" rel="stylesheet" type="text/css" media="screen" />
<link href="/App_Firma/css/firm.css" rel="stylesheet" type="text/css" media="screen" />
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css">
<link href="/App_Firma/DayPilot/Themes/scheduler_8.css" rel="stylesheet" type="text/css"/>
<link href="/App_Firma/css/custom.css" rel="stylesheet" type="text/css" media="screen"/>
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
在此文件鏈接的結束腳本:
<script src="/App_Firma/js/app.min.js"></script>
,我還得到了警告和Chrome控制檯中的錯誤:
LoginPage.aspx:7 Resource interpreted as Stylesheet but transferred with MIME type text/html: " http://localhost/LoginPage.aspx?ReturnUrl=%2fApp_Firma%2fcss%2fcustom.css ". LoginPage.aspx:7 Resource interpreted as Stylesheet but transferred with MIME type text/html: " http://localhost/LoginPage.aspx?ReturnUrl=%2fApp_Firma%2fcss%2ffirm.css ". LoginPage.aspx:7 Resource interpreted as Stylesheet but transferred with MIME type text/html: " http://localhost/LoginPage.aspx?ReturnUrl=%2fApp_Firma%2fcss%2fmain.min.css ". LoginPage.aspx:7 Resource interpreted as Stylesheet but transferred with MIME type text/html: " http://localhost/LoginPage.aspx?ReturnUrl=%2fApp_Firma%2fDayPilot%2fThemes%2fscheduler_8.css ". LoginPage.aspx?ReturnUrl=%2fApp_Firma%2fjs%2fapp.min.js:2 Uncaught SyntaxError: Unexpected token <
您修改了哪個庫?它是自舉的還是其他的? –
@PowerStar我剛剛修改了main.min.css和main.full.css。也許一些.aspx頁面。 –
你做了什麼樣的編輯?什麼CSS文件是?你在哪裏使用圖書館? –