阿赖.NET

网络连心 点滴分享

理解DHTML网页中元素的位置和大小关系

MSDN上关于DOM(Dynamic HTML Object Model,文档对象模型)中元素的位置和大小关系图,我觉得很有用,就贴出来了:

英文原文:

Measuring Element Dimension and Location


The following section is designed to help Web authors understand how to access the dimension and location of elements on the page through the Dynamic HTML (DHTML) Object Model.

Understanding Properties That Measure Element Dimension and Location

The following diagram of a sample page shows the DHTML Object Model properties that are related to the dimension and location of elements. The sample page contains a DIV element that is relatively positioned on the page. Since the overflow attribute of the DIV has been set to scroll and it contains more content than can be displayed within its limited client area, scroll bars are displayed.

试着翻译一下,大家将就着看吧。

测量元素的大小和位置


下面的设计用来帮助web作者如何通过文档对象模型(DOM)来存取网页元素的大小和位置。

理解测量大小和位置的属性

下图显示了文档对象模型中有关元素的位置和大小关系的属性。页面包含一个相对定位的DIV标签。因为DIV的overflow属性已设置为scroll,当它显示的内容超出范围时,滚动条就会被显示出来。

?

引用的MSDN地址:mk:@MSITStore:D:/Program%20Files/Microsoft%20Visual%20Studio/MSDN/2000JUL/1033/inet.chm::/workshop/author/om/measuring.htm

阅读更多
个人分类: JAVAScript & DHTML
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页

不良信息举报

理解DHTML网页中元素的位置和大小关系

最多只允许输入30个字

加入CSDN,享受更精准的内容推荐,与500万程序员共同成长!
关闭
关闭