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?
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. . .