aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/css/@viewport
diff options
context:
space:
mode:
authorFlorian Merz <me@fiji-flo.de>2021-02-11 12:56:40 +0100
committerFlorian Merz <me@fiji-flo.de>2021-02-11 12:56:40 +0100
commit310fd066e91f454b990372ffa30e803cc8120975 (patch)
treed5d900deb656a5da18e0b60d00f0db73f3a2e88e /files/zh-cn/web/css/@viewport
parent8260a606c143e6b55a467edf017a56bdcd6cba7e (diff)
downloadtranslated-content-310fd066e91f454b990372ffa30e803cc8120975.tar.gz
translated-content-310fd066e91f454b990372ffa30e803cc8120975.tar.bz2
translated-content-310fd066e91f454b990372ffa30e803cc8120975.zip
unslug zh-cn: move
Diffstat (limited to 'files/zh-cn/web/css/@viewport')
-rw-r--r--files/zh-cn/web/css/@viewport/height/index.html80
-rw-r--r--files/zh-cn/web/css/@viewport/orientation/index.html110
-rw-r--r--files/zh-cn/web/css/@viewport/viewport-fit/index.html67
-rw-r--r--files/zh-cn/web/css/@viewport/width/index.html133
-rw-r--r--files/zh-cn/web/css/@viewport/zoom/index.html69
5 files changed, 0 insertions, 459 deletions
diff --git a/files/zh-cn/web/css/@viewport/height/index.html b/files/zh-cn/web/css/@viewport/height/index.html
deleted file mode 100644
index 92d33a292c..0000000000
--- a/files/zh-cn/web/css/@viewport/height/index.html
+++ /dev/null
@@ -1,80 +0,0 @@
----
-title: height
-slug: Web/CSS/@viewport/height
-translation_of: Web/CSS/@viewport
-translation_of_original: Web/CSS/@viewport/height
----
-<div>{{CSSRef}}</div>
-
-<div><code><strong>height</strong></code><strong> </strong>CSS 属性是同时设置可视区 {{cssxref("@viewport/min-height", "min-height")}} and {{cssxref("@viewport/max-height", "max-height")}} 的简写。当你设置一个值的时候,最小高度(minimum height)和最大高度(maximum height)会被同时设置。</div>
-
-<p>如果提供两个值,第一个值会被设置为最小高度,第二个值将会被设置为最大高度。</p>
-
-<h2 id="语法">语法</h2>
-
-<pre class="brush: css notranslate">/* One value */
-height: auto;
-height: 320px;
-height: 15em;
-
-/* Two values */
-height: 320px 200px;
-</pre>
-
-<h3 id="合法值">合法值</h3>
-
-<dl>
- <dt><code>auto</code></dt>
- <dd>真实生效的高度值将根据其他 CSS 属性计算得出。</dd>
- <dt><code>&lt;length&gt;</code></dt>
- <dd>一个非负的绝对或相对值。</dd>
- <dt><code>&lt;percentage&gt;</code></dt>
- <dd>一个相对于缩放因子是 1.0 的初始可视区宽高的百分比值,水平和垂直方向的长度分别计算。不能是负值。</dd>
-</dl>
-
-<h2 id="正式定义">正式定义</h2>
-
-<p>{{cssinfo}}</p>
-
-<h2 id="正式语法">正式语法</h2>
-
-<pre class="syntaxbox notranslate">{{csssyntax}}</pre>
-
-<h2 id="示例">示例</h2>
-
-<h3 id="设置最小和最大高度">设置最小和最大高度</h3>
-
-<pre class="brush: css notranslate">@viewport {
- height: 500px;
-}</pre>
-
-<h2 id="规范">规范</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('CSS3 Device', '#descdef-viewport-height', '"height" descriptor')}}</td>
- <td>{{Spec2('CSS3 Device')}}</td>
- <td>初始定义</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="浏览器兼容性">浏览器兼容性</h2>
-
-
-
-<p>{{Compat("css.at-rules.viewport.height")}}</p>
-
-<h2 id="同时查看">同时查看</h2>
-
-<ul>
- <li>{{cssxref("@viewport")}}</li>
-</ul>
diff --git a/files/zh-cn/web/css/@viewport/orientation/index.html b/files/zh-cn/web/css/@viewport/orientation/index.html
deleted file mode 100644
index 11519cee6e..0000000000
--- a/files/zh-cn/web/css/@viewport/orientation/index.html
+++ /dev/null
@@ -1,110 +0,0 @@
----
-title: orientation
-slug: Web/CSS/@viewport/orientation
-tags:
- - CSS
- - CSS Description
-translation_of: Web/CSS/@viewport
-translation_of_original: Web/CSS/@viewport/orientation
----
-<div>{{CSSRef}}</div>
-
-<h2 id="摘要">摘要</h2>
-
-<p>此 <strong><code>orientation</code></strong> <a href="https://developer.mozilla.org/en-US/docs/Web/CSS">CSS</a> 描述符控制由{{cssxref("@viewport")}}定义文档的方向。</p>
-
-<p><span style="line-height: 1.5;">通过设备的倾斜摆动情况来决定文档显示的方向,作者可以通过设置这个描述符来抑制方向的变化{{cssinfo}}</span></p>
-
-<h2 id="语法">语法</h2>
-
-<pre class="brush:css">/* Keyword values */
-orientation: auto;
-orientation: portrait;/*锁定为纵向*/
-orientation: landscape;/* 锁定为横向*/
-</pre>
-
-<h3 id="取值">取值</h3>
-
-<dl>
- <dt><code>auto</code></dt>
- <dd>用户代理将文档的方向设置为自动,通常基于设备的定位由加速度传感器 (如果设备具有这种硬件传感器),但是用户控制,OS 级别的"锁方向"往往会优先于加速度传感器的设置。</dd>
- <dt><code>portrait</code></dt>
- <dd>文档被锁定为纵向。</dd>
- <dt><code>landscape</code></dt>
- <dd>文档被锁定为横向。</dd>
-</dl>
-
-<h3 id="标准语法">标准语法</h3>
-
-<pre class="syntaxbox">{{csssyntax}}</pre>
-
-<h2 id="规范">规范</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">规范</th>
- <th scope="col">标准</th>
- <th scope="col">注释</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('CSS3 Device', '#the-lsquoorientationrsquo-descriptor', '"orientation" descriptor')}}</td>
- <td>{{Spec2('CSS3 Device')}}</td>
- <td>Initial definition</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="浏览器兼容性">浏览器兼容性</h2>
-
-<p>{{CompatibilityTable}}</p>
-
-<div id="compat-desktop">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatNo}}</td>
- <td>10 {{property_prefix("-ms")}}</td>
- <td>{{CompatNo}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>{{CompatUnknown}}</td>
- <td>8 {{property_prefix("-o")}}</td>
- <td>{{CompatUnknown}}</td>
- </tr>
- </tbody>
-</table>
-</div>
diff --git a/files/zh-cn/web/css/@viewport/viewport-fit/index.html b/files/zh-cn/web/css/@viewport/viewport-fit/index.html
deleted file mode 100644
index 2716ef1d6f..0000000000
--- a/files/zh-cn/web/css/@viewport/viewport-fit/index.html
+++ /dev/null
@@ -1,67 +0,0 @@
----
-title: viewport-fit
-slug: Web/CSS/@viewport/viewport-fit
-translation_of: Web/CSS/@viewport
-translation_of_original: Web/CSS/@viewport/viewport-fit
----
-<div>{{CSSRef}} {{Draft}} {{SeeCompatTable}}</div>
-
-<p><strong><code>viewport-fit</code></strong> CSS {{CSSxRef("@viewport")}}  {{Glossary("Descriptor (CSS)", "descriptor")}} 是为了控制文档是如何填充满屏幕的。</p>
-
-<h2 id="语法">语法</h2>
-
-<pre class="brush: css; no-line-numbers">/* 关键值*/
-viewport-fit: auto;
-viewport-fit: contain;
-viewport-fit: cover;
-</pre>
-
-<h3 id="属性值">属性值</h3>
-
-<dl>
- <dt><code>auto</code></dt>
- <dd>此值不影响初始布局视图端口,并且整个web页面都是可查看的。</dd>
- <dt><code>contain</code></dt>
- <dd>视图端口按比例缩放,以适合显示内嵌的最大矩形。</dd>
- <dt><code>cover</code></dt>
- <dd>视图端口被缩放以填充设备显示。强烈建议使用 <a href="/en-US/docs/Web/CSS/env">safe area inset 变量</a>,以确保重要内容不会出现在显示之外。</dd>
-</dl>
-
-<h3 id="形式语法">形式语法</h3>
-
-<pre><span style="color: #0000ff;">&lt;</span><span style="color: #800000;">meta </span><span style="color: #ff0000;">name</span><span style="color: #0000ff;">="viewport"</span><span style="color: #ff0000;"> content</span><span style="color: #0000ff;">="width=device-width, initial-scale=1.0, <strong>viewport-fit=cover</strong>"</span><span style="color: #0000ff;">&gt;</span></pre>
-
-<h2 id="注意">注意</h2>
-
-<p>在使用 <code>viewport-fit</code> 描述符时,必须记住并不是所有的设备显示都是矩形的,因此应该使用<a href="/en-US/docs/Web/CSS/env">safe area inset 变量</a>。</p>
-
-<h2 id="规范">规范</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName("CSS Round Display", "#viewport-fit-descriptor", '"viewport-fit" descriptor')}}</td>
- <td>{{Spec2("CSS Round Display")}}</td>
- <td>Initial definition.</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="浏览器兼容性">浏览器兼容性</h2>
-
-<div class="hidden">兼容性表是由结构化数据生成的。如果您要为数据做出贡献,请点击连接 <a href="https://github.com/mdn/browser-compat-data">https://github.com/mdn/browser-compat-data</a> 向我们发送请求。</div>
-
-<p>{{Compat("css.at-rules.viewport.viewport-fit")}}</p>
-
-<h2 id="另请参见">另请参见</h2>
-
-<ul>
- <li>{{CSSxRef("env", "env()")}}</li>
-</ul>
diff --git a/files/zh-cn/web/css/@viewport/width/index.html b/files/zh-cn/web/css/@viewport/width/index.html
deleted file mode 100644
index ed5c585a7e..0000000000
--- a/files/zh-cn/web/css/@viewport/width/index.html
+++ /dev/null
@@ -1,133 +0,0 @@
----
-title: width
-slug: Web/CSS/@viewport/width
-translation_of: Web/CSS/@viewport
-translation_of_original: Web/CSS/@viewport/width
----
-<div>{{CSSRef}}</div>
-
-<p>The <strong>width</strong> CSS descriptor is shorthand for setting both the <a href="/zh-CN/docs/Web/CSS/@viewport/min-width"><code>min-width</code></a> and the <a href="/zh-CN/docs/Web/CSS/@viewport/max-width"><code>max-width</code></a> descriptors of the viewport. By providing one viewport length value, that value will determine both the <code>min-width</code> and the <code>max-width</code> to the value provided.</p>
-
-<p>If two viewport values are provided the first value will be set to the <code>min-width</code> and the second value will be set <code>max-width</code>.</p>
-
-<h2 id="Syntax" name="Syntax">Syntax</h2>
-
-<pre class="brush: css">/* An example with one viewport value: */
-@viewport {
- width: 320px;
-}
-
-/* An example with two viewport values: */
-@viewport {
- width: 320px, 120px;
-}
-
-</pre>
-
-
-
-<h3 id="Values" name="Values">Values</h3>
-
-<dl>
- <dt><code>auto</code></dt>
- <dd>The used value is calculated from the other CSS descriptors' values.</dd>
- <dt><code>&lt;length&gt;</code></dt>
- <dd>A non-negative absolute or relative length.</dd>
- <dt><code>&lt;percentage&gt;</code></dt>
- <dd>A percentage value relative to the width or height of the <span class="css">initial viewport</span> at zoom factor 1.0, for horizontal and vertical lengths respectively. Must be non-negative.</dd>
-</dl>
-
-<h3 id="Formal_syntax">Formal syntax</h3>
-
-<pre class="syntaxbox">auto <a href="https://developer.mozilla.org/en-US/docs/CSS/Value_definition_syntax#Single_bar" title="Single bar">|</a> <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/length">&lt;length&gt;</a> <a href="https://developer.mozilla.org/en-US/docs/CSS/Value_definition_syntax#Single_bar" title="Single bar">|</a> <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/percentage" title="">&lt;percentage&gt;</a></pre>
-
-<h2 id="Specifications" name="Specifications">Specifications</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('CSS3 Device', '#descdef-viewport-min-width', '"min-width" descriptor')}}</td>
- <td>{{Spec2('CSS3 Device')}}</td>
- <td>Initial definition</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="Browser_compatibility">Browser compatibility</h2>
-
-<p>{{ CompatibilityTable() }}</p>
-
-<div id="compat-desktop">
-<table class="compat-table" style="height: 93px; width: 950px;">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Chrome</th>
- <th>Firefox (Gecko)</th>
- <th>Internet Explorer</th>
- <th>Opera</th>
- <th>Safari</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>29 (behind a flag)</td>
- <td>{{CompatNo}}</td>
- <td>10 {{property_prefix("-ms")}}</td>
- <td>11.10<br>
- Removed in 15<br>
- Reintroduced behind a flag in 16</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
-
-<div id="compat-mobile">
-<table class="compat-table" style="height: 93px; width: 948px;">
- <tbody>
- <tr>
- <th>Feature</th>
- <th>Android</th>
- <th>Chrome for Android</th>
- <th>Firefox Mobile (Gecko)</th>
- <th>IE Mobile</th>
- <th>Opera Mobile</th>
- <th>Safari Mobile</th>
- </tr>
- <tr>
- <td>Basic support</td>
- <td>
- <table class="compat-table">
- <tbody>
- <tr>
- <td>4.4</td>
- </tr>
- </tbody>
- </table>
- </td>
- <td>
- <table class="compat-table">
- <tbody>
- <tr>
- <td>29</td>
- </tr>
- </tbody>
- </table>
- </td>
- <td>{{CompatNo}}</td>
- <td>10{{property_prefix("-ms")}}</td>
- <td>11.10<br>
- Removed in 15<br>
- Reintroduced behind a flag in 16</td>
- <td>{{CompatNo}}</td>
- </tr>
- </tbody>
-</table>
-</div>
diff --git a/files/zh-cn/web/css/@viewport/zoom/index.html b/files/zh-cn/web/css/@viewport/zoom/index.html
deleted file mode 100644
index 894e8a6c73..0000000000
--- a/files/zh-cn/web/css/@viewport/zoom/index.html
+++ /dev/null
@@ -1,69 +0,0 @@
----
-title: zoom
-slug: Web/CSS/@viewport/zoom
-tags:
- - CSS
- - CSS Descriptor
-translation_of: Web/CSS/@viewport
-translation_of_original: Web/CSS/@viewport/zoom
----
-<div>{{ CSSRef }}</div>
-
-<p><strong><code>zoom</code></strong> <a href="/en-US/docs/Web/CSS">CSS</a> 属性会根据 {{cssxref("@viewport")}} 来初始化一个缩放因数。</p>
-
-<p>当设置<code>1.0</code> 或 <code>100%</code>时表示不缩放。更大的值放大,更小的值缩小。</p>
-
-<p>{{cssinfo}}</p>
-
-<h2 id="语法">语法</h2>
-
-<pre class="brush:css">/* Keyword value */
-zoom: auto;
-
-/* &lt;number&gt; values */
-zoom: 0.8;
-zoom: 2.0;
-
-/* &lt;percentage&gt; values */
-zoom: 150%;
-</pre>
-
-<h3 id="值">值</h3>
-
-<dl>
- <dt><code>auto</code></dt>
- <dd>根据`viewport`来既定当前标签的缩放。</dd>
- <dt><code>&lt;number&gt;</code></dt>
- <dd>必须是一个非负数。1表示没有缩放,大于1表示放大的倍数,小于1亦然。</dd>
- <dt><code>&lt;percentage&gt;</code></dt>
- <dd>必须是一个非负的百分比。以100%为基础进行缩放。</dd>
-</dl>
-
-<h3 id="形式语法">形式语法</h3>
-
-<pre class="syntaxbox">{{csssyntax}}</pre>
-
-<h2 id="规范">规范</h2>
-
-<table class="standard-table">
- <thead>
- <tr>
- <th scope="col">Specification</th>
- <th scope="col">Status</th>
- <th scope="col">Comment</th>
- </tr>
- </thead>
- <tbody>
- <tr>
- <td>{{SpecName('CSS3 Device', '#zoom-desc', '"zoom" descriptor')}}</td>
- <td>{{Spec2('CSS3 Device')}}</td>
- <td>Initial specification</td>
- </tr>
- </tbody>
-</table>
-
-<h2 id="浏览器兼容">浏览器兼容</h2>
-
-
-
-<p>{{Compat("css.at-rules.viewport.zoom")}}</p>