Overriding CSS background image styles - both images are loaded?

后端 未结 4 662
孤城傲影
孤城傲影 2021-01-11 13:40

If I have 2 CSS styles that assign background images to an element, and one style overrides the other. Will both images be downloaded by the browser or just the overriding o

4条回答
  •  悲哀的现实
    2021-01-11 14:17

    It seems in some cases the answer is yes:

    http://www.cloudfour.com/css-media-query-for-mobile-is-fools-gold/

    http://www.cloudfour.com/examples/mediaqueries/image-test/#t4

提交回复
热议问题