- Simulator used on mobile side
- What is a viewport (viewpoint)
- The width of the PC-side viewport is the same as the width of the browser
- Layout viewport: Move PC page directly to mobile, viewport width not associated with browser width, completely independent, even larger than screen width (common usage)
- Visual viewport: The visual viewport is as wide as the device screen and changes by the user's zoom
- Ideal viewport: Let the user have the most ideal browsing and reading, the user into the page does not need to zoom to watch (<meta name= "viewport" content= "Width=device-width, User-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0 >) shortcut key is Meta:vp+tab
- Width=device-width viewport width equals device width
- User-scalable=no Prohibit scaling
- initial-scale=1.0 page Initial zoom level
- maximum-scale=1.0 Maximum zoom level
- minimum-scale=1.0 Minimum zoom level
- The idea of responsive layout
- The elastic grid layout, elastic image, media and media query are integrated and named as responsive layout;
- Technical points: Box model, floating,
- Floating: Set Display:flex in parent element, convert parent element to elastic box model, and add flex:num to child element, set scale
- Advantages: Face Different resolution device flexibility, can block knot to solve multi-device display adaptation problems
- Disadvantage: Compatible with a variety of equipment workload, inefficient; Code is cumbersome, there will be hidden useless elements, loading time extended
- Units used on the mobile side
- EM based on parent change
- REM Based on root node change (r=root)
- px Pixels 1em=16px=100%=12pt;
- Percentage
- PT points
- The advent of the Mobile world
- The development of mobile internet
- Rapid development of smart phones
- The development of mobile Web applications
- The difference between mobile development and PC-side development V
- Equipment
- Resolution 1024 1920 ....
- Interface layout
- Input attributes (mouse keyboard touch) ...
Test
- PC: Test with various browsers
- Mobile: Using the simulator (Android SDK "virtual device AvD"/ios simulator/chrome) Chrome is the most common
Media type (@media media type, keyword (and only), media characteristics (width/height width). device-width/device-height device width high. Orientation: Landscape horizontal screen. orientation:portrait vertical screen) {style code}) *css3*
-
- All devices
- Braille Braille Execution Feedback Equipment
- Embossed Braille Printer
- Print printing device
- Projection Projection Equipment
- Screen computer monitor
- TV and TV equipment
the introduction of the outside part of the category to achieve multi-device adaptation:
Internal classification introduced to achieve multi-device adaptation:
Mobile-guided Learning