Use documentElement to correctly obtain the size of the current visible area. documentelement
Other methods are not applicable. Only this documentElement can correctly obtain the size of the current visible area.
var w =
1, the difference of scrolltop under each browserIE6/7/8:For pages that do not have DOCTYPE declarations, Document.body.scrollTop can be used to obtain scrolltop heights ;For pages that have DOCTYPE declarations, you can use document.documentElement.
Source:Obtains the height and width of the current browser window.Solution text:Solution Process:About document.doc umentElement:W3c: This is a convenience attribute that allows direct access to the child node that is the root element of the
In IE:Document.body.clientWidth ==> Body Object widthDocument.body.clientHeight ==> Body Object HeightDocument.documentElement.clientWidth ==> Visible Area widthDocument.documentElement.clientHeight ==> Visible Area heightIn
Document represents the entire document (for a webpage, including the entire webpage structure );
Document.doc umentelement is the root node of the entire document node tree, which is an HTML tag on the webpage;
Document. body is the body node in
Standard mode and weird modeDue to historical reasons, each browser has different rendering on the page, and even the same browser in different versions, the page rendering is not the same. Before the introduction of the world standard, the browser
Currently, there are many popular Asp.net architectures, including open-source projects such as Microsoft patterns & practices.
Factory, nhibernet, nbear Orm, petshop and other architectures. Next I will introduce another metadata-based (XML)
Before starting, create a smallfools. xml file with the following content: Wang Wei Bamboo Pavilion sit in the room alone and play the piano. Shen Lin does not know, the moon to photograph. Meng Haoran sujian Dejiang migrate the boat to smoke,
Wang Wei Bamboo Pavilion sit in the room alone and play the piano. Shen Lin does not know, the moon to photograph. Meng Haoran sujian Dejiang migrate the boat to smoke, and the guests are worried about new things. Ye Kuang, tianshu, Jiang
The fixed floating effect will inevitably produce jitter when dragging, and I still have a good liking for CSS. I found it and found it to the end of the world. It is pure CSS for a closer look, without JS effects, I think it is more streamlined
This article mainly describes the differences between offsetHeight, clientHeight, and scrollHeight. If you need them, you can refer to them. I hope you can find some help on the Internet. The conclusion is very general, I never talked about IE
From: http://hi.baidu.com/sunward08/blog/item/cb64ac224657014dac34de2d.html
Automatic Upgrade of winform using WebService
Compared with web programs, winform programs have more powerful functions and more convenient programming, but
When automatic updates are required, the client software submits an update request to a fixed website address and returns the latest version number. Compare the client software with your own version. If you find that the server version is different
An error occurred while calling txmldocument in DLL! Delphi/Windows SDK/API
Http://www.delphi2007.net/DelphiBase/html/delphi_20061218133656127.html
When I use XML to read and write data in a DLL, such as configuration, an error occurs after each
javascript Tutorials http://blog.111cn.net/zhongmao/category/29515.asp Tutorial Xjavascriptzh-chs.text version 0.958.2004.2001zhongmaoout put Excel used javascripthttp://blog.111cn.net/zhongmao/archive/2004/09/15/105385.aspxwed, Sep 13:32:00 gmthttp:
1. Determine if the document is an XML documentvar isxml = function (elem) {var documentelement = Elem && (elem.ownerdocument | | elem). documentelement;Return documentelement? Documentelement.nodename!== "HTML": false;}To understand the above code,
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.