JavaScript——二

style:

 

 

Experiment II.

 

 querySelectorAll () which if filled id name directly write, if you want to determine the value of a property, it is necessary to use [] to choose specific, multiple separated by a space on the second under the express statement in which the first write the label inside a property

This class represents the name of the li tag under mv

chrome can not in this way to get custom attributes (self-created)

div there is no text of this property, but after setting with

 

Div nutshell is no corresponding increase in a property abc, but the object has the property

 

In the style settings you want to add units can be added px or%

Where this disblock: pictures none in the sub-div on behalf of the above settings will not be displayed, and the parent div will be displayed

 Experiment three:

Div setting the size and position (click the button position change)

To set the specific location coordinates, the display will flow out of the document, namely: position: absolute

Mouse is selected such that the tab at the top of a plurality of identical labels

 

 In the scope of variables, if you define a new variable elsewhere, equivalent to the role defined in the beginning

 

 

 

Guess you like

Origin www.cnblogs.com/kongbursi-2292702937/p/10759945.html