Note: The corresponding relationship between tag properties and DOM object properties is the same for most 2 of them, for example the IMGOBJ.SRC attribute corresponds to SRC attribute
Exception: <div class= "" > Operation class attribute with Divobj. ClassName
CSS properties correspond to DOM object properties, 2 by Obj.style.css property name, for example:
Obj.style.width
Obj.style.background
If the CSS property has a horizontal line such as Border-top-style, the horizontal line is removed and the first letter after the line is capitalized, for example:
Obj.style.borderTopStyle
Obj.style.marginLeft
"Attached" parseint can convert "300px" directly to 300
var " 300px " ; // to change the width to 500px // method ①console.log (number (Width.substr (0,3) + ++"px " ); // Console.log (parseint (width) ++ +"px");
Javascript notes and summaries (2-8) object 2