how to specify image size in pixels

前端 未结 5 1215
忘掉有多难
忘掉有多难 2020-12-19 02:20

Quick question about specifying the size of images in pixels:

\"logo\"

5条回答
  •  一个人的身影
    2020-12-19 02:39

    I usually leave it out. As not often is the case I use elements. But, it is better practice to place the width and height in the tag so the browser doesn't have to calculate these dimensions.

提交回复
热议问题