2018-10-13 (Unknown point)

Source: Internet
Author: User

Q: What is BFC, role? How to trigger? Solve practical problems?

A: BFC: block-level formatting context, which refers to a separate block-level rendering area that only block-level box participates in, which has a set of rendering rules to constrain the layout of block-level boxes and is independent of the outside of the area.

The root element, the value of float does not have a value of None,overflow of Visible,display, is Inline-block, Table-cell, Table-caption, The value of position is absolute or fixed and can be implemented BFC

Solve the problem: prevent margin overlap, you can let the parent element wrap the floating child element, this is also overflow:hidden can clearly float. The generated BFC elements that are adjacent to the floating element cannot be overwritten with floating elements.

Q: Whatis the difference between link and @import?

A: @import can only load CSS. and link can load more.

difference in loading order: When a page is clipped (when viewed by the browser), the CSS referenced by the link is loaded at the same time, and the CSS referenced by @import waits until the page is fully downloaded and then loaded. So sometimes browsing @import loading CSS page when there will be no style (that is, flashing), the speed of the slow time is quite obvious.

The difference when using the DOM to control styles. When you use JavaScript to control the DOM to change the style, only the link tag is used, because @import is not controlled by the DOM (not supported).
Q: An HTTP request structure? (Request header Parameter)

A:

Q: A page from the input URL to the page load display completed, what happened to this process?

A: Check the browser cache, domain name resolution, initiating a TCP connection, three-time handshake--client sends HTTP request---the server makes the appropriate message --Read the page content, browser rendering , Parse HTML source, generate DOM tree, parse CSS style, JS interaction

2018-10-13 (Unknown point)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.