High-resolution solution
In general, our pages are produced in accordance with resolution 800 * 600 screen size to do a very simple reason: Most of the visitors to the resolution of the computer used is 800 * 600 resolution, to do so is to To adapt to most people, this can also be described as a page produced by the principle of it. But at the same time we should also take into account, with the display to raise standards, there have been more and more people to display their more than 800 * 600 resolution, which reminded us: in our design of the page when Is not in use should take into account the higher-resolution view.
First, the "standard" of how to do?
Since most people use the 800 * 600 resolution, and that for the time being we have it as a "standard." Generally speaking, a page we do not want it to appear horizontal scroll bar, so that the browser will bring more trouble, so we are talking about is mainly a question of the width of the page. Some beginners may think that since the 800 * 600, 800, of course, is the width. In fact, this is wrong, we have to remove the edge of the browser window width and vertical scroll bar, so to be smaller than the width of 800. According to the author's experience in the Win98 default window, the width of just 775 to fill the width of the window (or so pages for the margin to 0 on the premise of), and taking into account the aesthetic factor, I believe that 750 is the width of the More appropriate.
Second, a commonly used method - in the middle level
Almost all the overall layout of the pages are to achieve the table, we set up, will allow the most out of form in the middle level, so that in the more than 800 * 600 resolution, the page is the overall level of the center, although both sides Yao Liuchu or blank, but it looks on the Left than the more comfortable. Most of the pages are used in this way, such as Sina.
Third, the background to fill the gaps in some of the
In fact, a way to ditto this is not much difference, but the gap is part of the background color or background image to fill, can look a little better than a blank. But one thing should pay attention to: the background color or background image must be content with a reasonable part of the match, otherwise they will be self-defeating, as it Mo empty well. This is not a lot of examples, but if good design is good effects, such as the new network.
Fourth, the relative width of the form to automatically adapt to the size of the screen
Have indicated previously, the layout of the pages are basically used to achieve the forms. The size of the forms are general, the definition of pixels (px) to do the unit, which is a fixed term for the screen size of the unit; but there is a percentage (%) to the definition, the definition of this method is No more than rank-order reference. As most of the outer forms, it is the element of the higher page (that is, the browser) the size of the window, so that if the outer table with the percentage of the width of the definition, it will change with the size of the window. To use this feature, we will be able to make the width of the window with the change of the width of the page. But to do so should pay attention to one thing: there is a table of contents, once the size of the table with the window size changes, the layout of the content may change, so this way the layout must be careful, properly handle the relationship between the need for some experience And to be repeated in different size of the window under test it. Because this approach is too much trouble to be careful not to be a self-defeating, and the need for a wealth of experience, so this is not a lot of examples. NetEase is more common.
V. scripting language used to do a different page
Use scripting language users may be aware: The scripting language (for example, JAVAScript or VBScript) is able to determine the current screen resolution. In this way, we can do a good job according to the resolution of different page, and then you can use scripting languages to achieve a different resolution to open a different page. I have seen some information on the method of presentation. But I did not find such examples, but to do so much work, worth a bit, so I was not respected this practice.
Sixth, another kind of idea of how
We turn first to Pieris House, we found that this page appeared in the horizontal scroll bar to display your tune into 1024 * 768, you will find that this page is based on the resolution done, but to return to 800 * 600, we can see that we can see that the "first screen (that is, just when they get to see some of the size of the window)", is a complete page, not because some of the less affected part of the effect of . Of course, this situation for more content when it is not appropriate, but Pieris In such a case is dealt with very appropriately, it reminds me of the saying - open a new path.
Seven, two different feeling
Let's take a look at the world Hong consultants, we were in the 800 and 600 * 1024 * 768 under the look, we found that both large and small-screen mode, the page's layout has changed: in two different modes , The horizontal line and the ratio of vertical lines there have been some changes, no change in the length of the horizontal line, vertical line with the window size is changed, so that in two models, the overall layout does not feel the same. So, as long as our minds, we will come up with a better solution.
Well, I was more than a bit of experience, we would like to be able to help.
Post a Comment