aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/conflicting/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/conflicting/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/conflicting/web/css/@viewport')
-rw-r--r--files/zh-cn/conflicting/web/css/@viewport/index.html80
1 files changed, 80 insertions, 0 deletions
diff --git a/files/zh-cn/conflicting/web/css/@viewport/index.html b/files/zh-cn/conflicting/web/css/@viewport/index.html
new file mode 100644
index 0000000000..92d33a292c
--- /dev/null
+++ b/files/zh-cn/conflicting/web/css/@viewport/index.html
@@ -0,0 +1,80 @@
+---
+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>