CSS: Are view height (vh) and view width (vw) units widely supported?

前端 未结 6 1522
庸人自扰
庸人自扰 2020-11-30 04:01

I\'m using 100vh to center a div vertically with line-height. This site puts support for vh and vw at around 70%, is that a fair assessment? Would you recommend using viewpo

6条回答
  •  甜味超标
    2020-11-30 04:33

    The statistic is clearly and it is a fair assessment, in my point of view.

    I think the decision has to be made by you. If you want to future-proof your website using the latest greatest technology, but are aware that there are currently some downfalls, then great, go for it.

    If you are not prepared to invest a little more into your online presence, then stick to the old way, which is in no means wrong.

    EDIT: When I want to create a responsive design I start developing for Mobile Devices first and then create the Desktop Version, to ensure that my viewports all work correctly, since the Mobile support is lacking at some points(especially vmax). BUT about this you could ask 50 guys and the chances that they all will say something else are pretty good.

提交回复
热议问题