Why use percentage value for div's width in CSS?

前端 未结 8 1871
无人及你
无人及你 2021-02-13 11:09

I am reading articles about css. I found out that many of writers suggest to use % value for div\'s width or height.

I am using pixels all the time.

Why should I

8条回答
  •  醉酒成梦
    2021-02-13 11:42

    the benefit of using % is than you can use all 100% of user interface, and give best experience no mattet

提交回复
热议问题