What Does 'zoom' do in CSS?

前端 未结 7 1116
孤独总比滥情好
孤独总比滥情好 2020-11-29 00:09

I found that some jQuery Plugin, in their css rule uses \'zoom\' descriptor, I even Look into w3c website and found that it is used to magnify but how can I actually impleme

7条回答
  •  旧时难觅i
    2020-11-29 00:39

    zoom is a css3 spec for the @viewport descriptor, as described here

    http://dev.w3.org/csswg/css-device-adapt/#zoom-desc

    used to zoom the entire viewport ('screen'). it also happens to zoom individuals elements in a lot of browsers, but not all. css3 specifies transform:scale should be used to achieve such an effect:

    http://www.w3.org/TR/css3-transforms/#transform-functions

    but it works a little different than the 'element zoom' in those browsers that support it.

提交回复
热议问题