is there any limit on css file size?

前端 未结 11 2020
Happy的楠姐
Happy的楠姐 2020-12-09 19:18

I am using ASP.NET MVC to develop a site. The CSS file has grown to 88KB and is having a little more 5,000 lines. I noticed recently that styles added at the end are not the

11条回答
  •  感动是毒
    2020-12-09 19:58

    What does the CSS validator say about your CSS rules?

    Cut and paste the last "ineffective" rules of your stylesheet at its beginning: are some of them now working?

    Obvious typo errors can be seen with a good text editor like PSPad, Notepad++, Scite: " ; /* */ and so on. They have a pretty limited scope like ; or are easily seen like a comment not closed. The less obvious one I encountered was not closing a parenthesis:

    background: green url(img/dummy_gradient.png left top no-repeat;
    

    Nothing worked till the next ) in my CSS rules 50 lines below!

提交回复
热议问题