Is it better to use images or CSS to keep performance of a webpage or application as high as possible?

后端 未结 3 403
旧时难觅i
旧时难觅i 2020-12-18 19:18

My project\'s creative designer and I have had some amicable disagreements as far as whether it is better to use slices of his comp or rely on the browser\'s rendering engin

3条回答
  •  醉梦人生
    2020-12-18 20:11

    i think CSS is more reusable. Imagine you have to repeat the same image over and over again in the same web document. Lots of HTTP requests there. But that's my opinion, please correct me if I'm wrong I think CSS is way more expressive and flexibly stylish. However, there are things you have to watch out for. Stuff like browser specific prefixing kill pages with too much CSS.

提交回复
热议问题