The first time a static web page is laid out, there are many details that need to be explored, such as the following questions:
1, layout problems: Often a div is squeezed out? Do half a div layout?
Before you lay out, make sure you have a good frame, clear how much aspect each place is, and strive to be accurate to every pixel (whether it contains a border pixel); however, the sketches on paper are fine and precise, and need to be practiced.
2, positioning problems: Clearly all positioning, why also appear div layout confusion phenomenon?
Why is it possible to fix a negative number by setting the value of Margin-left/right, but the display of the effect in other browsers is still wrong?
3, the position of the picture in the Div, why according to the value set by the theory, is not to be due position?
is the picture positioned incorrectly or is the reference div mistaken?
4, the internal margin and the issue of the outside bureau?
Can distinguish between the definition, why the actual use of the results are always not due to it? What's the problem?
5, the alignment of the text in the Div, line spacing?
Alignment no problem, how to adjust the line spacing? With Line-height? How to adjust the spacing between word and word?
6. Is there a sequence list application in div?
The sequence table in the div can be used to do horizontal and vertical menu bar, you can set the border, but how to reduce the point in front of it? When inserting a picture to make an ordinal, how is the picture aligned with the text and why is it confusing?
The date after the text in addition to use a separate div to do, why I use the <span> tag to make a blank line automatically, why?
7, why do the static Web page in this browser can be normal display, change the other browser can not?
Is it a code error or a browser compatibility issue?
(not to be continued ...) )
Hope that through the practice of their own steps to find the answer, rather than remember the experience of others, not to practice. Other people's knowledge can be used for reference, but it is not their own.
I hardly stay up before, but now I begin to steal some time form the peaceful night.
Questions about the Css+div layout 2017-03-19