WebApp development in the early days, will encounter the PC-side development of the page in the mobile display too big problem, here need to add META tags in the HTML head to control the zoomHere are specific instructions for this tag:Viewport Syntax Introduction:The content contains several properties:height = [Pixel_value | Device-height] ,width = [Pixel_value | device-width],Initial-scale = Float_value,Minimum-scale = Float_value,Maximum-scale = Float_value,user-scalable = [yes | no],target-d
= [Dpi_value | device-dpi | high-dpi | medium-dpi | low-dpi]
11
"
12
/>
WidthControls the size of the viewport, you can specify a value or a special value, such as device-width as the width of the device (in pixels of the CSS when scaled to 1
With the prevalence of high-end mobile phones (andriod,iphone,ipod,winphone, etc.), the development of mobile Internet applications is becoming more and more important, and it is the best choice to develop mobile applications with HTML5. However, each phone has a different resolution, different screen size, how to make our development of the application or page size can be suitable for a variety of high-end mobile phone use it? Learning the use of HTML5 viewport can help you do this ...Viewport
First, let us know an unfortunate message: pixels cannot be directly converted into inches or centimeters, and must be converted under DPI!
Two types of resolution conversion in Photoshop72 pixels/inch = 28.346 pixels/centimeter300 pixels/inch = 118.11 pixels/centimeter1 CM = 0.3937 inch1 inch = 2.54 cmCompare with common 1024 pixels:
1024 pixels = 3.413 inch = 8.67 cm (300 pixels/inch DPI ≈ 0.003333 in
With the prevalence of high-end mobile phones (andriod,iphone,ipod,winphone, etc.), the development of mobile Internet applications is becoming more and more important, and it is the best choice to develop mobile applications with HTML5. However, each phone has a different resolution, different screen size, how to make our development of the application or page size can be suitable for a variety of high-end mobile phone use it? Learning the use of HTML5 viewport can help you do this ... viewport
-scalable = [yes | no],
10
target-densitydpi = [Dpi_value | device-dpi | high-dpi | medium-dpi | low-dpi]
11
"
12
/>
1.Set widthControls the size of the viewport, you can specify a value or a special value, suc
Android resolution adaptation
The problem of Android resolution adaptation has always been a major problem for Android. Here, I refer to the official development documentation and some of the resolution processing skills in actual development to share with you.
Official resolution adaptation documentation "SupportingMultiple Screens"Overview of Screens SupportScreen size: Screen size Screen density: Screen Density Orientation: Direction Resolution: Resolution density-independent pixel (dp or dip
With the prevalence of high-end mobile phones (andriod,iphone,ipod,winphone, etc.), the development of mobile Internet applications is becoming more and more important, and it is the best choice to develop mobile applications with HTML5. However, each phone has a different resolution, different screen size, how to make our development of the application or page size can be suitable for a variety of high-end mobile phone use it? Learning the use of HTML5 viewport can help you do this ... viewport
-scalable=no" />Android 4.0 ~ 4.3As a relatively old version of Android, it has a poor support for the width attribute in meta. In Samsung Note II, for example, its device-width is 360px. If you set the width (hereinafter abbreviated) in viewport vWidth to a value that is less than or equal to 360, it will not have any effect, and a vWidth value greater than 360 will not cause the screen to scale, but a horizontal scroll bar appears.If you want to support Android 4.0 to 4.3, you still have to re
With the prevalence of high-end mobile phones (andriod,iphone,ipod,winphone, etc.), the development of mobile Internet applications is becoming more and more important, and it is the best choice to develop mobile applications with HTML5. However, each phone has a different resolution, different screen size, how to make our development of the application or page size can be suitable for a variety of high-end mobile phone use it? Learning the use of HTML5 viewport can help you do this ... viewport
Nowadays, drones are not new to many people, and even many places have introduced the relevant rules for drones, but this does not affect people's love for aerial photographs, especially aerial panorama. Of course, for many enthusiasts, although want to use drone aerial camera panorama, but always not its law, so next, the small hand-made to teach you the drone aerial panorama of the process need to pay att
= [Dpi_value | device-dpi | high-dpi | medium-dpi | low-dpi]
11
"
12
/>
WidthControls the size of the viewport, you can specify a value or a special value, such as device-width as the width of the device (in pixels of the CSS when scaled to 1
= [Dpi_value | device-dpi | high-dpi | medium-dpi | low-dpi]
11
"
12
/>
WidthControls the size of the viewport, you can specify a value or a special value, such as device-width as the width of the device (in pixels of the CSS when scaled to 1
= [Dpi_value | device-dpi | high-dpi | medium-dpi | low-dpi]
11
"
12
/>
WidthControls the size of the viewport, you can specify a value or a special value, such as device-width as the width of the device (in pixels of the CSS when scaled to 1
. Here, the square-dimensional network describes how a viewport feature of HTML5 allows the website to adapt to different resolutions of the mobile browser.The viewport syntax is as follows:Content= "Height = [Pixel_value | device-height],width = [Pixel_value | device-width],Initial-scale = Float_value,Minimum-scale = Float_value,Maximum-scale = Float_value,user-scalable = [yes | no],Ten target-densitydpi = [Dpi_value | device-dpi | high-
Comments: Developing mobile apps with html5 is the best choice. However, each mobile phone has different resolutions and screen sizes. How can we make the developed applications or page sizes suitable for various high-end mobile phones?
With the prevalence of high-end mobile phones (such as Android, Iphone, Ipod, and WinPhone), mobile Internet application development has become increasingly popular. html5 is the best choice for mobile app development. However, each mobile phone has different res
Use of viewport in HTML5 Development
With the prevalence of high-end mobile phones (such as Android, iPhone, iPod, and winphone), mobile Internet application development has become increasingly popular. HTML5 is the best choice for mobile app development. However, each mobile phone has different resolutions and screen sizes. How can we make the developed applications or page sizes suitable for various high-end mobile phones? Learning how to use HTML5 viewport can help you do this ...... Viewport
generailized size/density.
In actual Layout design, the Unit should be dp, which can avoid the impact caused by different screen dpi. The most typical example is Apple's retina screen.
Xlarge: at least 960dp x 720dp
Large: at least 640dp x 480dp
Normal: at least 470dp x 320dp
Small: at least between DP x 320dp
Px = dp * (dpi/160)
For example, for a 1.5 DPI
HTML5, And the viewport label is added below.
Nusamibia
2013-03-31 21:08:33
Http://site.com-Site1 site
Using http://www.maoegg.com/the-usage-of-viewport-in-html5/ for viewport in HTML5
When developing a mobile app with HTML5, users will often encounter different resolution or screen sizes of mobile phones. How can we make the developed app or page size suitable for various mobile phones? Viewport in html5.Viewport Syntax:
Content ="Height = [pixel_value |
of the logical pixel to design and develop the page. Just prepare the resource map, you need to prepare twice times the size of the figure, through the code to shrink it 1 time times the size of the display, to ensure clarity.Practical applicationPeople are most concerned about the actual use of the canvas how to set. We combed through three platforms on iOS, Android, and web. But before I do, I'm going to introduce a little trick for a friend who is designing with PS.As I said before, we want
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.