Learning Day

    Today learned html inside the box model, then we can put any element box model inside, can be understood as a box, the box can be filled "stuff", there's something with the "box packing" There is a certain space , between two or more cassette boxes, the box is not a certain "distance" (space).

Wherein the composition is a box model: ①margin- margins - the distance between the box and the box

                   ②border- border - box 

                   ③padding- padding - filler   

                   ④content content - bought stuff,

    There Positioning: where top, left, right, bottom element only in the case of increasing the positioning will be used, (relative positioning) think of it as the boss (absolute positioning) think of it as her second child, generally do not go with the top, left, right, bottom. Where the elements will flow out of the document, in which case the general not to use margin, with the top, left, right, bottom, although can be effective, but in order to facilitate the development of simple code. (Fixed positioning) is certainly not the same father, because the elements will flow out of the document, and then back to the top of the scene to use, as well as advertising sidebar, that fixed positioning is a purebred wild child, nothing can pipe . But only the browser window can pipe live, under normal circumstances: the relative and absolute positioning occur simultaneously, and in general all the drop-down box combined with the relative positioning is absolutely complete.

    There is a learning Floating: Floating divided into two, left and right float float, float will flow out of the document, and then floating the difficulty lies in the clear float (clear float): float itself is not clear, but on a clear floating impact on their own.
   
    

Guess you like

Origin www.cnblogs.com/zcc123/p/10947509.html