What is a pixel (px) in CSS?

前端 未结 7 1962
粉色の甜心
粉色の甜心 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:19

    A pixel is a unit of measurement, at least, in regards to CSS. There is also pt, em, percentage... there are a few others. Each have their strengths.

    W3schools is chock full of references, check the one on CSS.

    I recommend downloading Firebug and experiment with changing the pixel width/height.

提交回复
热议问题