--- title: Element.scrollTopMax slug: Web/API/Element/scrollTopMax translation_of: Web/API/Element/scrollTopMax ---

{{APIRef("DOM")}}{{Non-standard_header}}

Element.scrollTopMax 返回一个只读Number表示元素所能滚动的最大高度

语法

var pxl = elt.scrollTopMax;

规范

此属性不在当前规范中

浏览器兼容

{{ CompatibilityTable() }}

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support {{ CompatNo() }} {{ CompatGeckoDesktop(16) }} {{ CompatNo() }} {{ CompatNo() }} {{ CompatNo() }}
Feature Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support {{ CompatNo() }} {{ CompatGeckoMobile(16) }} {{ CompatNo() }} {{ CompatNo() }} {{ CompatNo() }}

See also