Measuring Element Dimension and Location

来源:百度文库 编辑:神马文学网 时间:2024/04/26 10:40:38
Thefollowing section is designed to help Web authors understand how toaccess the dimension and location of elements on the page through theDynamic HTML (DHTML) Object Model.
Understanding Properties That Measure Element Dimension and Location
Thediagrams illustrated in this document represent different DHTML ObjectModel properties for the same page. The sample page contains adiv element that is relatively positioned on the page. Since theoverflow 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.



Click the Show Me button to see a working example.
This feature requires Microsoft Internet Explorer 4.0 or later. Clickthe following icon to install the latest version. Then reload this pageto view the sample.

Related Topics
clientHeight
clientLeft
clientTop
clientWidth
offsetHeight
offsetTop
offsetLeft
offsetWidth
scrollTop
scrollHeight
scrollWidth
style.border
style.left
style.marginTop
style.paddingLeft
style.top