What is a pixel (px) in CSS?

前端 未结 7 1982
粉色の甜心
粉色の甜心 2021-02-19 01:33

I am reading an ASP.NET book and it refers to CSS files and talks about pixels. But I never understood it from a resolution, layout, etc. point of view. For example, what does t

相关标签:
7条回答
  • 2021-02-19 02:21

    It means a dimension, measured in pixels on-screen. E.g.

    width: 200px;
    

    means an element is 200 pixels wide.

    A pixel is a "PICture ELement", meaning one coloured dot on the screen, probably much like the period at the end of this sentence.

    0 讨论(0)
提交回复
热议问题