From 33058f2b292b3a581333bdfb21b8f671898c5060 Mon Sep 17 00:00:00 2001 From: Peter Bengtsson Date: Tue, 8 Dec 2020 14:40:17 -0500 Subject: initial commit --- files/zh-cn/web/api/element/clienttop/index.html | 44 ++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 files/zh-cn/web/api/element/clienttop/index.html (limited to 'files/zh-cn/web/api/element/clienttop/index.html') diff --git a/files/zh-cn/web/api/element/clienttop/index.html b/files/zh-cn/web/api/element/clienttop/index.html new file mode 100644 index 0000000000..24ae493df0 --- /dev/null +++ b/files/zh-cn/web/api/element/clienttop/index.html @@ -0,0 +1,44 @@ +--- +title: Element.clientTop +slug: Web/API/Element/clientTop +tags: + - API + - CSSOM View + - 属性 +translation_of: Web/API/Element/clientTop +--- +

{{ APIRef("DOM") }}

+ +

一个元素顶部边框的宽度(以像素表示)。不包括顶部外边距或内边距。clientTop 是只读的。

+ +

基于 Gecko 的应用从 Gecko 1.9(Firefox 3 {{ Bug(111207) }})开始支持 clientTop。该属性在 Firefox 2 或更早的版本中不被支持。

+ +

语法

+ +
var top = element.clientTop;
+ +

示例

+ +
+
+

padding-top

+ +

Gentle, individualistic and very loyal, Birman cats fall between Siamese and Persian in character. If you admire cats that are non aggressive, that enjoy being with humans and tend to be on the quiet side, you may well find that Birman cats are just the felines for you.

+ +

All Birmans have colorpointed features, dark coloration of the face, ears, legs and tail.

+ +

Cat image and text coming from www.best-cat-art.com

+ +

padding-bottom

+
+LeftTopRightBottommargin-topmargin-bottomborder-topborder-bottom
+ +

备注

+ +

clientTop 首次出现于 MS IE DHTML 对象模型中。

+ +

相关链接

+ + -- cgit v1.2.3-54-g00ecf