is 4 common multiple, XHDPI multiplied by the 2,hdpi under the 1.5,ldpi multiplied by 0.75 can satisfy all the dimensions are integer pixel.But assuming a standard of up to 3 dpi, that requires DP to be common multiple, XHDPI multiplied by 1.333,mdpi under 0.666, ldpi divided by 2The ldpi and XHDPI are more complex, so select the DPI(2) This is explained in Google's official documentation, as the first Android device (HTC's T-mobile G1) is 160dpi. Iv
Q: mobile terminal H5 page HD multi-screen adaptation solution,Background
Develop mobile terminal H5 page
Mobile phones with different resolutions
Mobile phones of different screen sizes
Visual draft
Before the front-end deve
Brief introduction:Always understand the common units in Android is not very thorough, share under today. What's not in place, welcome to point outMeaning:1, Screen Size: Physical size (cell phone diagonal size, such as 4.7, 5, 5.5 inches of mobile phones)2. Density (dpi): t
1. Screen Related concepts1.1 ResolutionIt means how many pixels are there on the screen.1.2 Screen SizeRefers to the actual physical size of the phone, such as the usual 2.8-inch, 3.2-inch, 3.5-inch, 3.7-inchAndroid divides the screen
Background
Developing mobile H5 Pages
Face different resolution of the phone
Face different screen size of the phone
Visual manuscriptBefore the front-end development, the visual mm will give us a PSD file, called the visual manuscript.For mobile development, in order to achieve the effect of high
With the popularization of 3G, more and more people use mobile Internet.Mobile devices are exceeding desktop devices and becoming the most common endpoint for accessing the Internet. As a result, web designers have to face a dilemma: how can the same page be presented on devices of different sizes?The screen of the phone is smaller and generally 600 pixels wide,
Mobile front-end sharing: understanding of the page size of mobile devices (1)
Creating front-end pages for mobile devices will often encounter many confusing situations. In this article, I have sorted out some related concepts and methods to share with you.
Device pixel and CSS Pixel
Css
Today, time to write a ~ before already done two demo, mainly using css+html completed, today or to complete a demo, build a pet website. Before we start, we'll introduce a knowledge point about adaptation.
In fact, for the front end of learning, H5 mobile phone fitness is also a cliché of the problem, of course, there are Daniel on the net to the solution, here I will combine their actual situation analysis of this adaptation problem.
Foundatio
Background
Developing mobile H5 Pages
Face different resolution of the phone
Face different screen size of the phone
Visual manuscriptBefore the front-end development, the visual mm will give us a psd file, called 视觉稿 .For mobile development, in order to achieve the effect of high-definition pages
Transferred from: http://www.zcool.com.cn/article/ZNjI3NDQ=.html1. Understand several concepts(1) resolution. Resolution is the cell phone screen pixel points, generally described as the screen "wide x high", Android phone screen Common resolution has 480x800, 720x1280, 1080x1920 and so on. 720x1280 indicates that this screen
background
Developing mobile H5 Pages
Face different resolution of the phone
Face different screen size of the phone
Visual manuscriptBefore the front-end development, the visual mm will give us a PSD file, called the visual manuscript.For mobile development, in order to achieve the effect
Original: Http://www.cocoachina.com/webapp/20150715/12585.html?utm_source=tuicoolBackground
Developing mobile H5 Pages
Face different resolution of the phone
Face different screen size of the phone
Visual manuscriptBefore the front-end development, the visual mm will give us a PSD file, called the visual manuscript.For
unit for Android to use DP in layout. note: There is a formula Dip (DP) = device density DPI/160 * pixel = DPI/160 * pixel for example: the device density of c8813 is densitydpi = 240 So dip = 240/160 * pixel = 1.5 Pixel
If DPI = 160, 1dp = 1 pixel (PX)6: SP magnification pixels are mainly used for font display (best for textsize ). According to Google's suggestion, it is best to use SP as the unit for the font s
In Android Development, screen densities and screen logic sizes are often used to fit the screens, and a list of screen parameters for common phones is listed here:
pixel density level
pixel density
logical pixel density
screen pixels
Mobile HD and multi-screen adaptation solutions [Source: http://div.io/topic/1092], div.io1092Lovesueee was released before January 1, August.
Mobile HD and multi-screen adaptation solutions
Background
Visual draft
Before front-end development, visual MM will give us a psd file calledVisual draft.
For
/MainActivity﹕ the screen size is Point(800, 1202)D/MainActivity﹕ the screen real size is Point(800, 1280)
If you cannot reproduce it easily, you don't need to worry about it. For the sake of insurance, use getRealSize () to obtain the correct information.
2. screen
multiplied by 3. This way of thinking can be roughly estimated to the actual physical length. 44 points, is the mobile phone navigation bar, the height of the toolbar. If you think in pixels, it's easy to make pictures too big or too small.4, non-vector material, you can do the largest size, and then to reduce. For example, if you need a 3x
IE8 and earlier versions, all browsers support REM. Write an absolute unit declaration for browsers that do not support it. These browsers ignore font sizes that are set with REM. Here's an example:
p {font-size:14px; font-size:.875rem;}
The default HTML font-size is 16px, that is 1rem=16px, if a p width of 32px you can set to 2rem.
Typically, a value of 62.5% i
official figure: the first row is about the size of the file, where each file overlaps, that is, a rough range. However, we know that the loading logic when the program runs must be accurate, and a definite value must be obtained for each device to determine the level of the device before knowing which resources to load. In other words, if we have a 3.3 mobile phone, is it small or normal? It cannot be jud
page code, add a line of viewport meta tags.
Viewport is the default width and height of the Web page, which means that the page width defaults to the screen width (width=device-width), and the original scaling (initial-scale=1) is 1.0, the initial size of the page is 100% of the screen area.
All major browsers support this setting, including IE9. For those old
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.