How to keep a
constant in size as the user zooms in and out on the page?

后端 未结 6 1741
北荒
北荒 2020-12-11 19:30

Is there an html / css / javascipt way to maintain a

at a constant size in the face of the user\'s zooming the page in and out? That is, using control-plus to incre
6条回答
  •  执笔经年
    2020-12-11 19:57

    To make the div size invariant of zooming (But not contents inside it) do the following :
    Inside your css for that div :

    min-width: 100%;
    max-width: 100%;

    This will freeze the width, you can do the same for height too.

提交回复
热议问题