什么是初具规模,用户可扩展性,最小规模的,最大规模的meta标签属性? [英] What is initial scale, user-scalable, minimum-scale, maximum-scale attribute in meta tag?

查看:201
本文介绍了什么是初具规模,用户可扩展性,最小规模的,最大规模的meta标签属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要通过一个网站的源$ C ​​$ c和发现了这片code的。

 < META NAME =视口CONTENT =WIDTH =设备宽度,初始规模= 1.0,用户可扩展= 1.0,最小规模= 1.0,最大规模= 1.0>

我想知道这是什么初具规模,用户可扩展性,最小规模的,最大规模的是和什么这些价值观是什么意思?同时也告诉我,他们接受什么都值。


解决方案

宽度=设备宽度


  

这意味着我们告诉浏览器我的网站能够适应您的设备宽度


初始规模


  

这定义规模的网站,这个参数设置初始缩放级别,这意味着如果 1 CSS像素等于 1视口像素即可。此参数的帮助,当你改变方向模式,或preventing默认缩放来。如果没有这个参数,响应网站的工作。


最大规模的


  

最大规模的定义最大变焦。当您访问网站的当务之急,是最大规模= 1将不允许用户进行放大。


最小规模


  

最小规模的定义最小缩放。这项工作与上面相同,但是可以定义的最小规模。如果你没有使用时,最大规模大,这是有用的定义这个工作,并要设置最小刻度到时候就可以使用。


用户可扩展


  

用户可扩展的分配 1.0 意味着网站可以放大或缩小。


  
  

但是,如果您分配用户可升级=没有在其力所能及的网站不允许放大或缩小。


希望这有助于你!

I was going through the source code of a website and found this piece of code.

<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=1.0, minimum-scale=1.0, maximum-scale=1.0">

I want to know what this initial scale, user-scalable, minimum-scale, maximum-scale are and what does those values mean? And also tell me what all values they accepts.

解决方案

width=device-width

this means we are telling to the browser "my website adapts to your device width"

Initial-scale

This define scale the website, This parameter sets the initial zoom level, which means if 1 CSS pixel is equal to 1 view port pixel. This parameter help to when you changing orientation mode, or preventing a default zooming. without this parameter responsive site work.

Maximum-scale

Maximum-scale define maximum zoom. When you access website top priority is maximum-scale=1 won’t allow the user to zoom.

Minimum-scale

Minimum-scale define minimum zoom. this work same as above but define minimum scale. If you not define this its work without using this is useful when maximum scale is large and you want to set minimum scale that time you can use.

User-scalable

User-scalable assign 1.0 means website allow to zoom in or zoom out.

But if you assign User-scalable=no its means website not allow to zoom in or zoom out.

Hope this help you!

这篇关于什么是初具规模,用户可扩展性,最小规模的,最大规模的meta标签属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆