


Analysis of three positioning schemes in CSS 2.1_html/css_WEB-ITnose
Jun 24, 2016 am 11:53 AM
Normal flow (NormalFlow Float must be positioned AbsolutPosit 1. What is block formatting context With the above knowledge, you can introduce Blockformatcontext block formatting context) Created the BlockFormatContext element , its child elements will be placed one after another. The vertical starting point is the top of a containing block, and the vertical distance between two adjacent elements depends on the 'margin' property. The straight margins of adjacent block-level elements in BlockFormatContext will collapse (collaps throotelementorsomeththatcontainitfloatelementwherefloatisnotnoneabsolutpositelementelementwherepositisabsolutorfixinline-blockelementwithdisplay:inline-blocktablcellelementwithdisplay:table-cell,whichisthedefaultforHTMLtablcelltablcaptionelementwithdisplay:table-caption,whichisthedefaultforHTMLtabl captionelwhereoverflowhaavaluotherthanvisiblflexboxelementwithdisplay:flexorinline-flex
2 "overflow" value is not "visible" 4 "table-caption", or "inline-block" 3. BFC use 1BlockFormatContext can prevent margin collapsing (margincollaps <style>*{margin:0;}body{width:100px ;}#one,#two{width:100px;height:100px;margin:10px;}#one{background:red;}#two{background:blue;}style> ="" The running results are as follows: You can see the upper and lower two The margins of each box are folded. The results are as follows: The margins of the upper and lower boxes are not folded at this time. For example: <divid="c1"><divid="red">div><divid. Now for #c1 and #c2 After adding the floatleft feature at the same time, the operating results are as follows: For example: margin:0; } width:100px; background:red; } height:200px; background:yellow; ="" ="" In order to reduce the number of modern browsers and IE<. ;8. For questions between At the same time, programmers must be careful when adding styles to the box by triggering the hasLayout method because this method of adding styles may cause that element to become a new block-level formatting context. </imgtitle="block formatting context"style="ma></imgtitle="block formatting context"style="ma></imgtitle="block level Formatting context (block formatting context"style="ma></imgtitle="block formatting context"style="ma></imgtitle="block formatting context" style="ma></imgtitle="block formatting context" style="ma></imgtitle="block formatting context"style="ma></ imgtitle="block formatting context" style="ma></imgtitle="block formatting context" style="ma>
http://bbs.tui18.com/thread-7999068-1-1.html
http://bbs.tui18.com/thread-7999067-1-1.html
http://bbs .tui18.com/thread-7999066-1-1.html
http://bbs.tui18.com/thread-7999065-1-1.html
http://bbs.tui18.com/thread -7999064-1-1.html
http://bbs.tui18.com/thread-7999063-1-1.html
http://bbs.tui18.com/thread-7999062-1-1 .html
http://bbs.tui18.com/thread-7999060-1-1.html
http://bbs.tui18.com/thread-7999059-1-1.html
http ://bbs.tui18.com/thread-7999057-1-1.html
http://bbs.tui18.com/thread-7999055-1-1.html
http://bbs.tui18 .com/thread-7999054-1-1.html
http://bbs.tui18.com/thread-7999053-1-1.html
http://bbs.tui18.com/thread-7999052 -1-1.html
http://bbs.tui18.com/thread-7999051-1-1.html
http://bbs.tui18.com/thread-7999049-1-1.html
http://bbs.tui18.com/thread-7999047-1-1.html
http://bbs.tui18.com/thread-7999046-1-1.html
http:/ /bbs.tui18.com/thread-7999045-1-1.html
http://bbs.tui18.com/thread-7999044-1-1.html
http://bbs.tui18.com /thread-7999043-1-1.html
http://bbs.tui18.com/thread-7999042-1-1.html
http://bbs.tui18.com/thread-7999041-1 -1.html
http://bbs.tui18.com/thread-7999040-1-1.html
http://bbs.tui18.com/thread-7999039-1-1.html
http://bbs.tui18.com/thread-7999038-1-1.html
http://bbs.tui18.com/thread-7999037-1-1.html
http://bbs .tui18.com/thread-7999035-1-1.html
http://bbs.tui18.com/thread-7999034-1-1.html
http://bbs.tui18.com/thread -7999033-1-1.html
http://bbs.tui18.com/thread-7999032-1-1.html
http://bbs.tui18.com/thread-7999031-1-1 .html
http://bbs.tui18.com/thread-7999030-1-1.html
http://bbs.tui18.com/thread-7999028-1-1.html
http ://bbs.tui18.com/thread-7999026-1-1.html
http://bbs.tui18.com/thread-7999025-1-1.html
http://bbs.tui18 .com/thread-7999023-1-1.html
http://bbs.tui18.com/thread-7999021-1-1.html
http://bbs.tui18.com/thread-7999019 -1-1.html
http://bbs.tui18.com/thread-7999017-1-1.html
http://bbs.tui18.com/thread-7999014-1-1.html
http://bbs.tui18.com/thread-7999012-1-1.html
http://bbs.tui18.com/thread-7999011-1-1.html
http://bbs.tui18.com/thread-7999009-1-1.html
http://bbs.tui18.com/thread-7999007-1-1.html
http://bbs.tui18.com/thread-7999004-1-1.html
http://bbs.tui18.com/thread-7999002-1-1.html
http://bbs.tui18.com/thread-7999000-1-1.html
http://bbs.tui18.com/thread-7998997-1-1.html
http://bbs.tui18.com/thread-7998995-1-1.html
http://bbs.tui18.com/thread-7998993-1-1.html
http://bbs.tui18.com/thread-7998990-1-1.html
http://bbs.tui18.com/thread-7998988-1-1.html
http://bbs.tui18.com/thread-7998986-1-1.html
http://bbs.tui18.com/thread-7998984-1-1.html
http://bbs.tui18.com/thread-7998982-1-1.html
http://bbs.tui18.com/thread-7998979-1-1.html
http://bbs.tui18.com/thread-7998977-1-1.html
http://bbs.tui18.com/thread-7998975-1-1.html
http://bbs.tui18.com/thread-7998973-1-1.html
http://bbs.tui18.com/thread-7998971-1-1.html
http://bbs.tui18.com/thread-7998969-1-1.html
http://bbs.tui18.com/thread-7998967-1-1.html
http://bbs.tui18.com/thread-7998965-1-1.html
http://bbs.tui18.com/thread-7998963-1-1.html
http://bbs.tui18.com/thread-7998961-1-1.html
http://bbs.tui18.com/thread-7998957-1-1.html
http://bbs.tui18.com/thread-7998950-1-1.html
http://bbs.tui18.com/thread-7998936-1-1.html
http://bbs.tui18.com/thread-7890962-1-1.html
http://bbs.tui18.com/thread-7847170-1-1.html
http://bbs.tui18.com/thread-7847159-1-1.html
http://bbs.tui18.com/thread-7847155-1-1.html
http://bbs.tui18.com/thread-7999176-1-1.html
http://bbs.tui18.com/thread-7999175-1-1.html
http://bbs.tui18.com/thread-7999174-1-1.html
http://bbs.tui18.com/thread-7999172-1-1.html
http://bbs.tui18.com/thread-7999171-1-1.html
http://bbs.tui18.com/thread-7999170-1-1.html
http://bbs.tui18.com/thread-7999169-1-1.html
http://bbs.tui18.com/thread-7999168-1-1.html
http://bbs.tui18.com/thread-7999167-1-1.html
http://bbs.tui18.com/thread-7999166-1-1.html
http://bbs.tui18.com/thread-7999165-1-1.html
http://bbs.tui18.com/thread-7999163-1-1.html
http://bbs.tui18.com/thread-7999161-1-1.html
http://bbs.tui18.com/thread-7999160-1-1.html
http://bbs.tui18.com/thread-7999159-1-1.html
http://bbs.tui18.com/thread-7999158-1-1.html
http://bbs.tui18.com/thread-7999157-1-1.html
http://bbs.tui18.com/thread-7999156-1-1.html
http://bbs.tui18.com/thread-7999154-1-1.html
http://bbs.tui18.com/thread-7999153-1-1.html
http://bbs.tui18.com/thread-7999152-1-1.html
http://bbs.tui18.com/thread-7999150-1-1.html
http://bbs.tui18.com/thread-7999149-1-1.html
http://bbs.tui18.com/thread-7999148-1-1.html
http://bbs.tui18.com/thread-7999147-1-1.html
http://bbs.tui18.com/thread-7999145-1-1.html
http://bbs.tui18.com/thread-7999144-1-1.html
http://bbs.tui18.com/thread-7999142-1-1.html
http://bbs.tui18.com/thread-7999141-1-1.html
http://bbs.tui18.com/thread-7999140-1-1.html
http://bbs.tui18.com/thread-7999138-1-1.html
http://bbs.tui18.com/thread-7999137-1-1.html
http://bbs.tui18.com/thread-7999136-1-1.html
http://bbs.tui18.com/thread-7999135-1-1.html
http://bbs.tui18.com/thread-7999129-1-1.html
http://bbs.tui18.com/thread-7999128-1-1.html
http://bbs.tui18.com/thread-7999127-1-1.html
http://bbs.tui18.com/thread-7999126-1-1.html
http://bbs.tui18.com/thread-7999125-1-1.html
http://bbs.tui18.com/thread-7999124-1-1.html
http://bbs.tui18.com/thread-7999123-1-1.html
http://bbs.tui18.com/thread-7999122-1-1.html
http://bbs.tui18.com/thread-7999121-1-1.html
http://bbs.tui18.com/thread-7999120-1-1.html
http://bbs.tui18.com/thread-7999118-1-1.html
http://bbs.tui18.com/thread-7999117-1-1.html
http://bbs.tui18.com/thread-7999116-1-1.html
http://bbs.tui18.com/thread-7999115-1-1.html
http://bbs.tui18.com/thread-7999114-1-1.html
http://bbs.tui18.com/thread-7999113-1-1.html
http://bbs.tui18.com/thread-7999111-1-1.html
http://bbs.tui18.com/thread-7999110-1-1.html
http://bbs.tui18.com/thread-7999108-1-1.html
http://bbs.tui18.com/thread-7999107-1-1.html
http://bbs.tui18.com/thread-7999106-1-1.html
http://bbs.tui18.com/thread-7999105-1-1.html
http://bbs.tui18.com/thread-7999104-1-1.html
http://bbs.tui18.com/thread-7999100-1-1.html
http://bbs.tui18.com/thread-7999099-1-1.html
http://bbs.tui18.com/thread-7999097-1-1.html
http://bbs.tui18.com/thread-7999095-1-1.html
http://bbs.tui18.com/thread-7999094-1-1.html
http://bbs.tui18.com/thread-7999093-1-1.html
http://bbs.tui18.com/thread-7999092-1-1.html
http://bbs.tui18.com/thread-7999091-1-1.html
http://bbs.tui18.com/thread-7999089-1-1.html
http://bbs.tui18.com/thread-7999088-1-1.html
http://bbs.tui18.com/thread-7999087-1-1.html
http://bbs.tui18.com/thread-7999084-1-1.html
http://bbs.tui18.com/thread-7999083-1-1.html
http://bbs.tui18.com/thread-7999082-1-1.html
http://bbs.tui18.com/thread-7999080-1-1.html
http://bbs.tui18.com/thread-7999079-1-1.html
http://bbs.tui18.com/thread-7999077-1-1.html
http://bbs.tui18.com/thread-7999075-1-1.html
http://bbs.tui18.com/thread-7999073-1-1.html
http://bbs.tui18.com/thread-7999072-1-1.html
http://bbs.tui18.com/thread-7999071-1-1.html
http://bbs.tui18.com/thread-7999070-1-1.html
http://bbs.tui18.com/thread-7999069-1-1.html
http://bbs.tui18.com/thread-7999068-1-1.html
http://bbs.tui18.com/thread-7999067-1-1.html
http://bbs.tui18.com/thread-7999066-1-1.html
http://bbs.tui18.com/thread-7999065-1-1.html
http://bbs.tui18.com/thread-7999064-1-1.html
http://bbs.tui18.com/thread-7999063-1-1.html
http://bbs.tui18.com/thread-7999062-1-1.html
http://bbs.tui18.com/thread-7999060-1-1.html
http://bbs.tui18.com/thread-7999059-1-1.html
http://bbs.tui18.com/thread-7999057-1-1.html
http://bbs.tui18.com/thread-7999055-1-1.html
http://bbs.tui18.com/thread-7999054-1-1.html
http://bbs.tui18.com/thread-7999053-1-1.html
http://bbs.tui18.com/thread-7999052-1-1.html
http://bbs.tui18.com/thread-7999051-1-1.html
http://bbs.tui18.com/thread-7999049-1-1.html
http://bbs.tui18.com/thread-7999047-1-1.html
http://bbs.tui18.com/thread-7999046-1-1.html
http://bbs.tui18.com/thread-7999045-1-1.html
http://bbs.tui18.com/thread-7999044-1-1.html
http://bbs.tui18.com/thread-7999043-1-1.html
http://bbs.tui18.com/thread-7999042-1-1.html
http://bbs.tui18.com/thread-7999041-1-1.html
http://bbs.tui18.com/thread-7999040-1-1.html
http://bbs.tui18.com/thread-7999039-1-1.html
http://bbs.tui18.com/thread-7999038-1-1.html
http://bbs.tui18.com/thread-7999037-1-1.html
http://bbs.tui18.com/thread-7999035-1-1.html
http://bbs.tui18.com/thread-7999034-1-1.html
http://bbs.tui18.com/thread-7999033-1-1.html
http://bbs.tui18.com/thread-7999032-1-1.html
http://bbs.tui18.com/thread-7999031-1-1.html
http://bbs.tui18.com/thread-7999030-1-1.html
http://bbs.tui18.com/thread-7999028-1-1.html
http://bbs.tui18.com/thread-7999026-1-1.html
http://bbs.tui18.com/thread-7999025-1-1.html
http://bbs.tui18.com/thread-7999023-1-1.html
http://bbs.tui18.com/thread-7999021-1-1.html
http://bbs.tui18.com/thread-7999019-1-1.html
http://bbs.tui18.com/thread-7999017-1-1.html
http://bbs.tui18.com/thread-7999014-1-1.html
http://bbs.tui18.com/thread-7999012-1-1.html
http://bbs.tui18.com/thread-7999011-1-1.html
http://bbs.tui18.com/thread-7999009-1-1.html
http://bbs.tui18.com/thread-7999007-1-1.html
http://bbs.tui18.com/thread-7999004-1-1.html
http://bbs.tui18.com/thread-7999002-1-1.html
http://bbs.tui18.com/thread-7999000-1-1.html
http://bbs.tui18.com/thread-7998997-1-1.html
http://bbs.tui18.com/thread-7998995-1-1.html
http://bbs.tui18.com/thread-7998993-1-1.html
http://bbs.tui18.com/thread-7998990-1-1.html
http://bbs.tui18.com/thread-7998988-1-1.html
http://bbs.tui18.com/thread-7998986-1-1.html
http://bbs.tui18.com/thread-7998984-1-1.html
http://bbs.tui18.com/thread-7998982-1-1.html
http://bbs.tui18.com/thread-7998979-1-1.html
http://bbs.tui18.com/thread-7998977-1-1.html
http://bbs.tui18.com/thread-7998975-1-1.html
http://bbs.tui18.com/thread-7998973-1-1.html
http://bbs.tui18.com/thread-7998971-1-1.html
http://bbs.tui18.com/thread-7998969-1-1.html
http://bbs.tui18.com/thread-7998967-1-1.html
http://bbs.tui18.com/thread-7998965-1-1.html
http://bbs.tui18.com/thread-7998963-1-1.html
http://bbs.tui18.com/thread-7998961-1-1.html
http://bbs.tui18.com/thread-7998957-1-1.html
http://bbs.tui18.com/thread-7998950-1-1.html
http://bbs.tui18.com/thread-7998936-1-1.html
http://bbs.tui18.com/thread-7890962-1-1.html
http://bbs.tui18.com/thread-7847170-1-1.html
http://bbs.tui18.com/thread-7847159-1-1.html
http://bbs.tui18.com/thread-7847155-1-1.html
http://bbs.tui18.com/thread-7999176-1-1.html
http://bbs.tui18.com/thread-7999175-1-1.html
http://bbs.tui18.com/thread-7999174-1-1.html
http://bbs.tui18.com/thread-7999172-1-1.html
http://bbs.tui18.com/thread-7999171-1-1.html
http://bbs.tui18.com/thread-7999170-1-1.html
http://bbs.tui18.com/thread-7999169-1-1.html
http://bbs.tui18.com/thread-7999168-1-1.html
http://bbs.tui18.com/thread-7999167-1-1.html
http://bbs.tui18.com/thread-7999166-1-1.html
http://bbs.tui18.com/thread-7999165-1-1.html
http://bbs.tui18.com/thread-7999163-1-1.html
http://bbs.tui18.com/thread-7999161-1-1.html
http://bbs.tui18.com/thread-7999160-1-1.html
http://bbs.tui18.com/thread-7999159-1-1.html
http://bbs.tui18.com/thread-7999158-1-1.html
http://bbs.tui18.com/thread-7999157-1-1.html
http://bbs.tui18.com/thread-7999156-1-1.html
http://bbs.tui18.com/thread-7999154-1-1.html
http://bbs.tui18.com/thread-7999153-1-1.html
http://bbs.tui18.com/thread-7999152-1-1.html
http://bbs.tui18.com/thread-7999150-1-1.html
http://bbs.tui18.com/thread-7999149-1-1.html
http://bbs.tui18.com/thread-7999148-1-1.html
http://bbs.tui18.com/thread-7999147-1-1.html
http://bbs.tui18.com/thread-7999145-1-1.html
http://bbs.tui18.com/thread-7999144-1-1.html
http://bbs.tui18.com/thread-7999142-1-1.html
http://bbs.tui18.com/thread-7999141-1-1.html
http://bbs.tui18.com/thread-7999140-1-1.html
http://bbs.tui18.com/thread-7999138-1-1.html
http://bbs.tui18.com/thread-7999137-1-1.html
http://bbs.tui18.com/thread-7999136-1-1.html
http://bbs.tui18.com/thread-7999135-1-1.html
http://bbs.tui18.com/thread-7999129-1-1.html
http://bbs.tui18.com/thread-7999128-1-1.html
http://bbs.tui18.com/thread-7999127-1-1.html
http://bbs.tui18.com/thread-7999126-1-1.html
http://bbs.tui18.com/thread-7999125-1-1.html
http://bbs.tui18.com/thread-7999124-1-1.html
http://bbs.tui18.com/thread-7999123-1-1.html
http://bbs.tui18.com/thread-7999122-1-1.html
http://bbs.tui18.com/thread-7999121-1-1.html
http://bbs.tui18.com/thread-7999120-1-1.html
http://bbs.tui18.com/thread-7999118-1-1.html
http://bbs.tui18.com/thread-7999117-1-1.html
http://bbs.tui18.com/thread-7999116-1-1.html
http://bbs.tui18.com/thread-7999115-1-1.html
http://bbs.tui18.com/thread-7999114-1-1.html
http://bbs.tui18.com/thread-7999113-1-1.html
http://bbs.tui18.com/thread-7999111-1-1.html
http://bbs.tui18.com/thread-7999110-1-1.html
http://bbs.tui18.com/thread-7999108-1-1.html
http://bbs.tui18.com/thread-7999107-1-1.html
http://bbs.tui18.com/thread-7999106-1-1.html
http://bbs.tui18.com/thread-7999105-1-1.html
http://bbs.tui18.com/thread-7999104-1-1.html
http://bbs.tui18.com/thread-7999100-1-1.html
http://bbs.tui18.com/thread-7999099-1-1.html
http://bbs.tui18.com/thread-7999097-1-1.html
http://bbs.tui18.com/thread-7999095-1-1.html
http://bbs.tui18.com/thread-7999094-1-1.html
http://bbs.tui18.com/thread-7999093-1-1.html
http://bbs.tui18.com/thread-7999092-1-1.html
http://bbs.tui18.com/thread-7999091-1-1.html
http://bbs.tui18.com/thread-7999089-1-1.html
http://bbs.tui18.com/thread-7999088-1-1.html
http://bbs.tui18.com/thread-7999087-1-1.html
http://bbs.tui18.com/thread-7999084-1-1.html
http://bbs.tui18.com/thread-7999083-1-1.html
http://bbs.tui18.com/thread-7999082-1-1.html
http://bbs.tui18.com/thread-7999080-1-1.html
http://bbs.tui18.com/thread-7999079-1-1.html
http://bbs.tui18.com/thread-7999077-1-1.html
http://bbs.tui18.com/thread-7999075-1-1.html
http://bbs.tui18.com/thread-7999073-1-1.html
http://bbs.tui18.com/thread-7999072-1-1.html
http://bbs.tui18.com/thread-7999071-1-1.html
http://bbs.tui18.com/thread-7999070-1-1.html
http://bbs.tui18.com/thread-7999069-1-1.html

Hot Article

Hot tools Tags

Hot Article

Hot Article Tags

Notepad++7.3.1
Easy-to-use and free code editor

SublimeText3 Chinese version
Chinese version, very easy to use

Zend Studio 13.0.1
Powerful PHP integrated development environment

Dreamweaver CS6
Visual web development tools

SublimeText3 Mac version
God-level code editing software (SublimeText3)

Hot Topics

Difficulty in updating caching of official account web pages: How to avoid the old cache affecting the user experience after version update?

How do I use HTML5 form validation attributes to validate user input?

What is the purpose of the <iframe> tag? What are the security considerations when using it?

How to efficiently add stroke effects to PNG images on web pages?

What is the purpose of the <meter> element?

What are the best practices for cross-browser compatibility in HTML5?

What is the purpose of the <datalist> element?

What is the purpose of the <progress> element?
