how to specify image size in pixels

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

Quick question about specifying the size of images in pixels:

\"logo\"

5条回答
  •  不知归路
    2020-12-19 02:40

    Could not find any information that verifies this but I would use integers without a unit (if not percentage) in HTML and use "px" in CSS, except for zero values where it´s more correct to leave out the unit.

    http://www.w3.org/TR/CSS2/visudet.html#the-width-property

提交回复
热议问题