, as a wireless division, doesn’t understand mobile devices. As a wireless refactoring, you can’t write a response page. And I, a wireless reconstruction, before a move I recently did the end of the project, it is not written response pages, so, strictly speaking, before this project, I was a bad wireless reconstruction.
, but this project has given me a quick grasp of some of the ways to respond to page refactoring. Here is a summary of what I learned in response page refactoring through this project.
as you all know, the so-called response page is the ability to use a set of styles so that your pages can be well represented in different resolutions of the screen. Responsive Web design, this concept is Ethan Marctte in A List Apart published an article "Responsive Web Design" cited the response type building named after:
responsive architecture (responsive Architecture), physical space should be based on the presence of people in which the corresponding.
according to some articles and materials I’ve read, I summarize several key components of a response page:
1, the head of the page meta, can viewport meta tag to make your HTML page width according to the width of visual device resolution allows the browser to adapt, you can also set the page here, zoom and so on, so in proportion to the resolution of the device, you can easily achieve the response type.
< meta name=" viewport" content=" width=device-width;; initial-scale=1.0" >
(fluid grid), fluid distribution and fluid layout that is in fact the page of your PC end on some elements of the width and height from the original fixed number of pixels (PX) adjusted for the percentage (%) or proportional font (EM) or (margin, padding, layout left top and PX units), which is the current value of the realization of the two methods to realize layout response.
The first kind of
percentage (%), is the element of the parent container’s width and height is 100%, other elements of the width and height relative to its parent container proportion, as long as the specific pixel value relative to a percentage of the conversion to his parent container. Of course, the conversion of this method is a little complicated because many relative high and high conversion percentage coefficients >