Element.clientTop

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

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

语法

vartop = 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.

Image:BirmanCat.jpgAll 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 对象模型中。

相关链接

文档标签和贡献者

向此页面作出贡献: teoli, AlexChao, ziyunfei, Mgjbot, Dewang
最后编辑者: AlexChao,