Problem calculating percentage for body width

后端 未结 6 1137
無奈伤痛
無奈伤痛 2021-01-16 20:20

I need to build a classic 960px layout and I have to convert that 960px into %. So, I should use 960px / 16px = 60%, right?

Note: 960px =

6条回答
  •  独厮守ぢ
    2021-01-16 20:36

    You will need the screen size in order to calculate the percentage 960px will take on that screen. (100/screensize)*960 = %

提交回复
热议问题