Mobile-side development
- Emulation: Plugins in Google Chrome developer tools
- Device: Device information
- pixel ratio (device pixel ratio):
- iPhone5: 1136*640 independent pixels
- iphone5:568 * 320 physical pixels
- pixel ratio: 2
- Many experts say the onclick event has a half-second delay on the mobile side
- viewport
- <meta name= "viewport" content= "width=device-width,height=device-height, user-scalable=no,initial-scale=1.0,minimum-scale=1.0,maximum-scale=1.0,target-densitydpi=device-dpi " / >
- Media queries
- @media all and (max-width:400px)
- All media
- key Word: And,not (excludes a device type), only (Specific media device)
- landscape
- @media All and (Orientation:landscape)
- @media All and (orientation:portrait)
- Mainstream mobile device resolution: 240*320 (not generally considered), 320*480, 480 * 800 (MULTI), 640*960 (multi), 480*854, 1280*720, 800*1280, 1080*1920
- em relative to font size font-size:24px; 1em = 24px;
- the measurement unit of REM relative to the root node font size
What's happening on the mobile side