Information graphical visualization for web-page: Is there any better way instead of small PNG files?

后端 未结 3 811
被撕碎了的回忆
被撕碎了的回忆 2021-01-25 05:20

Let\'s describe the task first:

I\'d like to create a web-page with several rows of a text and a small (let\'s say 100 by 20 pixels) graphic for each one. Each graphic g

3条回答
  •  清歌不尽
    2021-01-25 06:01

    There's two ways to optimize small graphics in a web page. You can use the tile-set concept (all the graphics in a single image, with offsets based on e.g. background-position), or you can embed the PNG directly into the page as base-64:

    Embedded Image
    

    The options have different merits based on file size and browser support. And of course, both can be combined - you can have an embedded tile-set.

提交回复
热议问题