Chapter 2 of JavaScript advanced programming-dom2, dom3-notes

Source: Internet
Author: User

I will share with you today the elevation, Version 2, chapter 11, dom2, and dom3

Throughout this chapter, Dom is changing, and changing in the future.

However, ie does not support dom2 or dom3. In the future, some new versions may support dom2 or dom3.

It is not common to select text, copy and select text. Probably skipped.

Mainly useful, there are several.

Get the current style, dynamically Insert the style,

This style refers to <Div class = "current"> </div>

. Current {} to get the style.

IE: currentstyle
Non-ie: getcomputedstyle

ReferenceArticle:

Http://hi.baidu.com/216syy/blog/item/a762b2b4d82ba0748bd4b283.html

We recommend that you use obj.style.css text = '';

Float, ie is different from non-ie.

References:

Http://snandy.javaeye.com/blog/459186

There are also some common table operations,

Insertrow () inserts a row
Insertcell () inserts a cell

The table is mainly used for B/s development,

There are also createcation (), createtfoot (), and createthead.

References:

Http://hi.baidu.com/wynote/blog/item/49fc36c39ca0cd5db219a802.html

There is also a question about the location.

Clientwidth, offsetwidth, scrollleft, and so on.

 

Related Article

Contact Us

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.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.