Web Client Experience:

Source: Internet
Author: User

Project experience:
1. If the set margin margin parent element also moves, the parent element setting triggers the BFC environment, Overflow:hidden
If the direct sub-class where the margin changed to padding, so that their own content relative to their position is changed

2. Refer to an external file./Represents the previous level (parent directory): /represents upper Level Two

3. Adjust position, must be with margin and padding, less than the need to locate, positioning itself efficiency and compatibility issues

4. Styles are used. class, #id留给JS用


In doing the project, first determine the structure, in the determination of the box body,
Add the elements, and the basic main frame is triggered BFC
When setting margins and padding

Multi-use bootstrap inside, directly integrated, convenient,
Typesetting without table layout, previously, and now give up, all the pages are boxes, with Div, set col-xs-3, in the adjustment page, or very convenient. Multi-grid format layout


The difference between the mobile phone and the PC side:
1. Top write adaptive All phones,
<meta name= "viewport" content= "Width=device-width, initial-scale=1.0" >
2. Add autosize.js between the last import foot and HTML
When a small picture is added to the first occurrence of the position is not the origin of the coordinates, probably the center of time, you can add a sentence font-size:0, inside the conversion problem
The width of the 3.autosize.js is changed to picture width
4. All the lengths used in the inside are measured by the picture px divided by 100, the unit is REM. For example, the measured 300px,3rem.

3 and 4 are all with the picture width, not the phone screen width, he adapts


5.body Set phone width, no settings below
6. Debugging with the phone that button, choose a cell phone can be

Web Client Experience:

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.