Ivx using learning developed in response layout / adaptive layout / adaptive width (relative positioning) experiences aspect

A recent study using ivx development process, to respond layout / adaptive layout / width adaptive (relative positioning) development of rewarding himself summed up some experience and we hope to share with you. For convenience, I demo for the official website of the grid system, the following analysis:
1. The use of adaptive layout of the core component to the environment is relatively broad lines, by providing the module be of widely varying environmental single template design time width can be achieved in different environments can be beautiful when suitably wide display module, I found that the number of test environment width is large, the width of the module is set smaller, the number of modules so that each line of the display will change much, does not seem to too dispersed, similarly, when the environment is set larger width is small, so that the number of each row of the display module will become less, does not seem to be too crowded, the specific settings will be described later.
2. First, it is certainly more templates to use many of the same data set, it is proposed to create a new array will need to demonstrate an array of data import module, and then create a relative row at home, as the navigation bar, the navigation demo here width column 100%, because the width of the navigation bar to the RWD, the width is set to a percentage, and then add the object at relative row containers, and the like are selected Demo horizontal alignment pitch, so as to make the object support full width of the page navigation bar change, if you want to make all objects are kept in one, the other on the choice of horizontal alignment
Ivx using learning developed in response layout / adaptive layout / adaptive width (relative positioning) experiences aspect
3. after the completion of the navigation bar, we look at the main editing mode, demo used in a centered alignment relative row and then add 80% of the width of the content area of the method, which would allow 20% of the width of the page template to maintain distance from the edge of the page, look more beautiful and comfortable, the situation is blocked border template does not occur. Here pitch content area using horizontal alignment, etc., so that the page template and neat as possible confluence, then creates a template loop, circulation and bind to the template data, it may be designed in a single template.
Ivx using learning developed in response layout / adaptive layout / adaptive width (relative positioning) experiences aspect
4. Next is the most critical place, we will Demo environment module width is set larger width is 30%, so that each line is displayed three modules (total width of 100%, that is, on average, three modules 33 %, but have a spacing between each module, where it is appropriate to 30%), module width is set at 45% less environmental models (total width of 100%, two modules on average is 50%, but have a spacing between each module, where it is set to 45% is appropriate), so that each row will display module 2, the same token, a wide width when the mobile phone environment, the module width is set to 100%, so a line only a module filled with this line.
Ivx using learning developed in response layout / adaptive layout / adaptive width (relative positioning) experiences aspect

Finally, the lower share my experiences, selection and arrangement of the ranks of UI components need more practice, have a solid basic skills in order to continue to move forward, wide environment settings that I think should own layout is the most important part, but also and more familiar, ivx always gives me a lot of surprises in the future development of continuous learning process, I will continue to share their ideas and experiences.

Guess you like

Origin blog.51cto.com/14556317/2477553