What is the difference between max-device-width and max-width for mobile web?

前端 未结 8 1952
盖世英雄少女心
盖世英雄少女心 2020-11-22 08:56

I need to develop some html pages for iphone/android phones, but what is the difference between max-device-width and max-width? I need to use diffe

8条回答
  •  情歌与酒
    2020-11-22 09:52

    max-width is the width of the target display area, e.g. the browser

    max-device-width is the width of the device's entire rendering area, i.e. the actual device screen

    Same goes for max-height and max-device-height naturally.

提交回复
热议问题