aboutsummaryrefslogtreecommitdiff
path: root/files/zh-cn/web/css/-webkit-overflow-scrolling
diff options
context:
space:
mode:
authorPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
committerPeter Bengtsson <mail@peterbe.com>2020-12-08 14:40:17 -0500
commit33058f2b292b3a581333bdfb21b8f671898c5060 (patch)
tree51c3e392513ec574331b2d3f85c394445ea803c6 /files/zh-cn/web/css/-webkit-overflow-scrolling
parent8b66d724f7caf0157093fb09cfec8fbd0c6ad50a (diff)
downloadtranslated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.gz
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.tar.bz2
translated-content-33058f2b292b3a581333bdfb21b8f671898c5060.zip
initial commit
Diffstat (limited to 'files/zh-cn/web/css/-webkit-overflow-scrolling')
-rw-r--r--files/zh-cn/web/css/-webkit-overflow-scrolling/index.html88
1 files changed, 88 insertions, 0 deletions
diff --git a/files/zh-cn/web/css/-webkit-overflow-scrolling/index.html b/files/zh-cn/web/css/-webkit-overflow-scrolling/index.html
new file mode 100644
index 0000000000..33c9fd5ed1
--- /dev/null
+++ b/files/zh-cn/web/css/-webkit-overflow-scrolling/index.html
@@ -0,0 +1,88 @@
+---
+title: '-webkit-overflow-scrolling'
+slug: Web/CSS/-webkit-overflow-scrolling
+tags:
+ - CSS
+ - Non-standard
+ - Reference
+translation_of: Web/CSS/-webkit-overflow-scrolling
+---
+<p>{{CSSRef}}{{Non-standard_header}}</p>
+
+<h3 id="概述">概述</h3>
+
+<p><strong><code>-webkit-overflow-scrolling</code></strong> 属性控制元素在移动设备上是否使用滚动回弹效果.</p>
+
+<h3 id="值">值</h3>
+
+<dl>
+ <dt><code>auto</code></dt>
+ <dd>使用普通滚动, 当手指从触摸屏上移开,滚动会立即停止。</dd>
+ <dt><code>touch</code></dt>
+ <dd>使用具有回弹效果的滚动, 当手指从触摸屏上移开,内容会继续保持一段时间的滚动效果。继续滚动的速度和持续的时间和滚动手势的强烈程度成正比。同时也会创建一个新的堆栈上下文。</dd>
+ <dt>
+ <h3 id="示例">示例</h3>
+
+ <pre class="brush: css">-webkit-overflow-scrolling: touch; /* 当手指从触摸屏上移开,会保持一段时间的滚动 */
+
+-webkit-overflow-scrolling: auto; /* 当手指从触摸屏上移开,滚动会立即停止 */
+</pre>
+ </dt>
+</dl>
+
+<h3 id="Browser_Compatibility" name="Browser_Compatibility">规范</h3>
+
+<p>尚未有相关规范。另在Apple提供的<a href="https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/css/property/-webkit-overflow-scrolling">Safari CSS 参考文档</a>中有所提及。</p>
+
+<h3 id="Browser_Compatibility" name="Browser_Compatibility">浏览器兼容性</h3>
+
+<p>{{CompatibilityTable}}</p>
+
+<table>
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Chrome</th>
+ <th>Firefox (Gecko)</th>
+ <th>Internet Explorer</th>
+ <th>Opera</th>
+ <th>Safari (WebKit)</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ </tr>
+ </tbody>
+</table>
+
+<table>
+ <tbody>
+ <tr>
+ <th>Feature</th>
+ <th>Android</th>
+ <th>Firefox Mobile (Gecko)</th>
+ <th>IE Phone</th>
+ <th>Opera Mobile</th>
+ <th>Safari Mobile</th>
+ </tr>
+ <tr>
+ <td>Basic support</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatNo}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>{{CompatUnknown}}</td>
+ <td>5.0</td>
+ </tr>
+ </tbody>
+</table>
+
+<h3 id="相关链接:">相关链接:</h3>
+
+<ul>
+ <li><a href="http://css-tricks.com/snippets/css/momentum-scrolling-on-ios-overflow-elements/">CSS-Tricks article with demo</a> </li>
+ <li><a href="https://developer.apple.com/library/safari/documentation/AppleApplications/Reference/SafariCSSRef/Articles/StandardCSSProperties.html#//apple_ref/css/property/-webkit-overflow-scrolling"><code>-webkit-overflow-scrolling</code> entry in Safari CSS Reference docs</a></li>
+</ul>