When to consider base64 (DATA: URI) images?

前端 未结 3 1724
不思量自难忘°
不思量自难忘° 2021-02-06 09:40

What are the factors that should trigger thinking about switching images over to Base64 embedded in CSS?

There seems to be a lot of generic pro/con type things out there

3条回答
  •  别那么骄傲
    2021-02-06 10:08

    Are there are key factors I should be looking for (both pro/con)?

    The biggest con is the missing support in IE6/7, and the incomplete support in IE8 (data: URIs must not be larger than 32 kilobytes there).

    Using CSS sprites is the vastly superior technique in this case.

提交回复
热议问题