--- title: height slug: Web/CSS/@media/height translation_of: Web/CSS/@media/height --- <p><strong><code>height</code></strong> 屬於 CSS 的媒體功能之一,其值為可視區域 (viewport) 的高度,像是 CSS 的 <a href="/en-US/docs/Web/CSS/length"><code><length></code></a>。</p> <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 Media Queries', '#height', 'height')}}</td> <td>{{Spec2('CSS3 Media Queries')}}</td> <td>初始定義。</td> </tr> </tbody> </table> <h2 id="Browser_compatibility" name="Browser_compatibility">瀏覽器相容性</h2> {{Compat("css.at-rules.media.height")}}