diff options
Diffstat (limited to 'files/zh-cn/web/css/-ms-overflow-style')
| -rw-r--r-- | files/zh-cn/web/css/-ms-overflow-style/index.html | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/files/zh-cn/web/css/-ms-overflow-style/index.html b/files/zh-cn/web/css/-ms-overflow-style/index.html new file mode 100644 index 0000000000..895b1cf043 --- /dev/null +++ b/files/zh-cn/web/css/-ms-overflow-style/index.html @@ -0,0 +1,50 @@ +--- +title: '-ms-overflow-style' +slug: Web/CSS/-ms-overflow-style +tags: + - CSS + - CSS属性 + - 参考 +translation_of: Archive/Web/CSS/-ms-overflow-style +--- +<div>{{CSSRef}}</div> + +<div>{{non-standard_header}}</div> + +<div></div> + +<p><strong><code>-ms-overflow-style</code></strong> 的<a href="/en-US/docs/Web/CSS">CSS</a> 属性是一个 <a href="/en-US/docs/Web/CSS/Microsoft_CSS_extensions">Microsoft extension</a> 用于控制元素内容溢出时滚动条的行为。</p> + +<p>{{cssinfo}}</p> + +<h2 id="Syntax" name="Syntax">语法</h2> + +<h3 id="Values" name="Values">Values</h3> + +<dl> + <dt><code>auto</code></dt> + <dt> 初始值等同于<code>inherit</code>.</dt> + <dd></dd> + <dt><code>none</code></dt> + <dd>永远不会显示滚动条,但是如果元素的内容溢出,仍然可以滚动元素。</dd> + <dt><code>scrollbar</code></dt> + <dd>如果元素的内容溢出,则显示“传统”滚动条。“传统的”滚动条不会自动隐藏,也不会覆盖元素的内容。因此,内容的布局区域的大小将通过滚动条的宽度(垂直滚动条)或高度(水平滚动条)来减少。</dd> + <dt><code>-ms-autohiding-scrollbar</code></dt> + <dd>如果元素的内容溢出,则使用自动隐藏滚动条。自动隐藏滚动条在滚动期间或指针与页面交互后不久显示,在滚动和指针交互停止后不久隐藏。当它们可见时,自动隐藏的滚动条会覆盖元素的内容。</dd> +</dl> + +<h3 id="Formal_syntax" name="Formal_syntax">语法形式</h3> + +<pre class="syntaxbox"> {{csssyntax}} +</pre> + +<h2 id="Specifications" name="Specifications">说明书</h2> + +<p>不是任何规范的一部分</p> + +<h2 id="另请参阅">另请参阅</h2> + +<ul> + <li>{{CSSxRef("scrollbar-width")}}</li> + <li>{{CSSxRef("::-webkit-scrollbar")}}</li> +</ul> |
