Front-end rough summary and important knowledge points, important knowledge points

Source: Internet
Author: User

Front-end rough summary and important knowledge points, important knowledge points
Front-end Workflow:

1. Code Writing 2. code compilation 3. Code compression 4. Image Compression 5. Version Control 6. Test

Front-end layout:

1. Raster 2. Streaming 3. Responsive 4. Holy directory (padding placeholder Layout-Common left and right sides of CRM)

Front-end performance optimization:

1. Domain Name address 2. domain name resolution 3. Three handshakes (request-response-send) 4. HTML (load resources) 5. JS

Reduce the number of website requests?

1. File compression (HTML, css, js, and images)

2. Icon font (Use font instead of image as much as possible)

3. css sprst (integrate a small image)

4. File Cache

5. ajax Cache

6. CDN Acceleration

7. File Merging

8.css Selector

9. Reduce js dom Cache

How to center an element?

Horizontal:

1. margin: 0 auto

2. Positioning 50%

3. text-align: center

4. JS dynamic center

5. center in HTML4.0

6. padding %

7. margin %

8. Use an empty DIV to squeeze the space

Vertical:

1. padding debugging

2. margin debugging

3. line-height

4. Positioning

5. th (Table Label display: tablecell)

What are css reflux and css re-painting?

1.css reflux: Two css styles of the same attribute are executed first, and the other one will overwrite the previous css style.

2.css re-painting: caused by typographical and structural events.

Related Article

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.