开发者

what if i add same css file twice in my asp.net application

开发者 https://www.devze.com 2023-02-18 18:22 出处:网络
I am developing an ASP.NET application , in which my master page has one css file named \"styles/xyz.css\"

I am developing an ASP.NET application , in which my master page has one css file named "styles/xyz.css" now my one other aspx file is aslo adding the same css file "styles/xyz.css" which is using the master page now my question is how this two same css file will be treated ? the thing i wanted to know here is "how asp.net engine ( or css rendering engine ) will treat this two file ? " will it overwrite the previous css with the new one ? or it will load both the file in the memory ? or it will combine both the css file in one ?

as such there is no referencing error or conflict in 开发者_C百科my application but i would like to know about the efficiency and memory optimization ..


Whichever one is referenced closer to the body tag (or content in question) will take priority when it comes to overriding similiar classes and IDs.


it will not combine it, it will load it twice.

first it will load the css from the child page, then load it again from the masterpage.

0

精彩评论

暂无评论...
验证码 换一张
取 消