2012-07-10 20 views
2

내 사이트 스타일 시트가 모든 브라우저에서 무시되고 있습니다. 테스트 한 결과입니다. IE9에서 테스트 할 때이 오류가 발생합니다 - SEC7113 : CSS가 MIME 유형 불일치로 인해 무시되었습니다.mime 형식이 일치하지 않아 CSS가 무시되었습니다.

여기에 참조하는 헤더의 html이 있습니다. 당신이 더 가야할 필요가 있으면 알려주세요.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 
    <head runat="server"> 
    <title></title> 

    <!--The style sheet below is the one being ignored--> 
    <link rel="stylesheet" type="text/css" charset="UTF-8" href="Styles/Site.css" /> 

    <!-- Skin CSS file --> 
    <link rel="stylesheet" type="text/css" href="http://yui.yahooapis.com/2.9.0/build/assets/skins/sam/skin.css" /> 
    <!-- Utility Dependencies --> 
    <script src="http://yui.yahooapis.com/2.9.0/build/yahoo-dom-event/yahoo-dom-event.js"></script> 
    <script src="http://yui.yahooapis.com/2.9.0/build/element/element-min.js"></script> 
    <!-- Needed for Menus, Buttons and Overlays used in the Toolbar --> 
    <script src="http://yui.yahooapis.com/2.9.0/build/container/container_core-min.js">  </script> 
    <script src="http://yui.yahooapis.com/2.9.0/build/menu/menu-min.js"></script> 
    <script src="http://yui.yahooapis.com/2.9.0/build/button/button-min.js"></script> 
    <!-- Source file for Rich Text Editor--> 
    <script src="http://yui.yahooapis.com/2.9.0/build/editor/editor-min.js"></script> 
    <script src="http://yui.yahooapis.com/2.9.0/build/editor/simpleeditor-min.js"></script> 


</head> 
+0

개인 서버에 있나요? CSS 파일을 올바른 MIME 형식으로 보내지 않았을 수 있습니다. – TheZ

+0

서버는 무엇입니까? [.htaccess 파일] (http://wiki.joyent.com/display/gen/Configuring+MIME+Types+in+.htaccess)을 바꿀 수 있습니까? –

+1

상대 경로 대신 절대 경로를 넣으려고합니다. – debianek

답변

7

컴퓨터를 설정할 때 IIS 용 정적 컨텐트 기능을 설치하지 못했던 회사에서 알아 냈습니다. 따라서 모든 스타일 시트, 이미지 및 링크를 무시하고있었습니다.

0

서버가 틀린 미디어 유형 정보를 보냈습니다. 하지만 이것은 서버 외부에서 확인할 수는 없습니다.

0

필자는 파일 이름에 오타가 있었으며 myFile.ccs와 myFile.css의 철자가 틀렸습니다. Firefox는 괜찮 았지만 IE는이 오류를 반환했습니다.

관련 문제