In my spare time, I made a web. The main interface is to use Div + CSS layout, Ajax + JavaScript For Interface Control and Data Acquisition!
Let me talk about the DIV + CSS layout.
The entire page is divided into three parts, which can be called: Header (site logo + banner), subject (left menu + right content), footer (display copyright and filing information ). I use position: relative; To set relative positioning for the three major parts. The advantage is that when the content of one part is too large, the other part will adjust the position accordingly.
Each block uses float for Left or Right layout. in the body, the left side is
# Divleft
{}{
Width: 228px;
Height: 400px;
Left: 26px;
Float: left;
Padding: 0;
Margin: 0;
Filter: revealtrans (duration = 2, transition = 3) progid: DXImageTransform. Microsoft. gradient (startcolorstr = # adde21, endcolorstr = # d8e7c2, gradienttype = 0 );
}
The right side is
# Divright
{}{ Float: left;
Left: 286px;
Width: 744px;
Height: 400px;
Padding: 0;
Filter: progid: DXImageTransform. Microsoft. gradient (startcolorstr = # f5efda, endcolorstr = # f7f7f7, gradienttype = 0 );
}
Note that float: Left; is used in both la s, so that when divleft is hidden on the left, divright on the right is automatically moved to the left, if # divright uses float: Right; Right: 0;, this effect cannot be achieved!