================================== Modifying CSS Properties ==================================
Returns the specified CSS style value
$ ("#txt1"). CSS ("color");
Assign multiple styles at once
$ ("#txt1"). CSS ({color: "#ff0011", Background: "Blue"});
Assigns a specified style at a time
$ ("#txt1"). CSS ("Color", "black");
================================== width and height related ==================================
Sets the height of the element, no value returns the height of the element in units of pixels
$ ("#txt1"). Height (25);
Sets the width of the element, and returns the width of the element without a value
$ ("#txt1"). Width (150);
Gets the inner height of the element, excluding the border
$ ("#txt1"). Innerheight ();
Gets the inner width of the element, not including the widening
$ ("#txt1"). Innerwidth ();
Gets the outer height of the element, including the border
$ ("#txt1"). Outerheight ();
Gets the outer width of the element, including the border
$ ("#txt1"). Outerwidth ();
================================== Location Related ==================================
Gets the offset position of the element relative to the window, returns two values, a top value, a left value
var txt1_offset=$ ("#txt1"). Offset ();
var top=txt1_offset.top;
var left=txt1_offset.left;
Returns the relative offset position of the relative parent element, returning two values a top, a left
var txt1_position=$ ("#txt1"). Position ();
var top=txt1_position.top;
var left=txt1_position.left;
The element that is targeted has a vertical scrollbar, and the setting starts at the 20th row of pixels down the overall content, and appears above the top of the ScrollBar visual window
If no parameters, returns the position of the vertex above the current ScrollBar Visual window, and the distance from the vertex above the overall content
$ ("#div_outer"). ScrollTop (20);
The element that is targeted has a horizontal scrollbar, which starts at the 20th column pixel to the left of the overall content, and is displayed in the left-hand vertex of the scrollbar visual window
If no parameters, returns the left vertex position of the current scroll bar visual window and the distance from the left vertex of the overall content
$ ("#div_outer"). ScrollLeft (20);
jquery gets, changes element attribute value 2