CSS - Percentages or Pixels?

前端 未结 9 759
梦如初夏
梦如初夏 2020-12-04 21:54

I have been using CSS for many years now, and I have always been a \'percentage\' kind of guy, as in I always define heights and widths using percentages as opposed to pixel

9条回答
  •  南方客
    南方客 (楼主)
    2020-12-04 22:32

    % are the way to go in a modern world just like Vector graphics. As screens get larger or smaller you can scale properly regardless of resolution.

提交回复
热议问题