Home > Web Front-end > HTML Tutorial > CSS cannot be loaded. Please explain_html/css_WEB-ITnose

CSS cannot be loaded. Please explain_html/css_WEB-ITnose

WBOY
Release: 2016-06-24 12:06:01
Original
1469 people have browsed it

The first page I wrote in VS2010 was fine. When the second page appeared, CSS could no longer control the content of the page. It was just what was written in CSS and what should be displayed on the design page. However, once the web page was run, it seemed like there were no references. It’s like CSS. There is no problem with the beginning quote of CSS. If you don’t understand, you can ask the master to give me a solution. Do you have any friends who have the same experience?


Reply to the discussion (solution)

What does it mean to display whatever needs to be displayed?


Are you sure the css import path is correct?

Just write in my CSS
.style1_main
{
margin:0px auto;
background-color:blue;
float:left;
width:500px ;
height:500px;
background-color:Green;
}
The content is reflected on the design page, but after compilation, it cannot be displayed on the web page

There must be no problem with the import path

Check whether the css file is loaded in the error console of the Chrome browser Come in, and if it is sure to be loaded, check whether the class name of the element is the same as the class name defined in CSS.

Personally, I think it’s mostly a path issue. . .

Me too, it works in IE, but not in Chrome

Dear, have you solved it? I encountered it too. . .

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template