Today I learned a very amazing css layout method.
Position: absolute;
Top: 61px;
Bottom: 0px;
After the position is set to absolute, top is the top side, left is the left side.
So if you change the bottom side to 0, will it become window self-adaptive?
When doing this, I thought about setting height: 100% directly. But this is invalid emperor. Why am I not sure...
[Css]
# Head {
Width: 100%;
Height: 61px;
Border-bottom: solid 1px # ccc;
Background-image: url (../img/topbg.gif );
Background-repeat: repeat-x;
}
# Logo {
Width: 189px;
Height: 61px;
Background-image: url (../img/logo_dmin.png );
}
# Left {
Padding-top: 15px;
Width: 205px;
Height: auto;
Overflow-y: auto;
Background-image: url (../img/leftbg.gif );
Position: absolute;
Top: 61px;
Bottom: 0px;
}
# Left h4 {
Margin-left: 18px;
Background-image: url (../img/menuf.gif );
Height: 20px;
Width: 160px;
Font-size: 12px;
Text-align: center;
Line-height: 20px;
// Font-weight: normal;
}
# Left li {
Padding-top: 5px;
Padding-bottom: 5px;
Padding-left: 36px;
Cursor: pointer;
Color: #555;
Font-size: 12px;
}
# Right {
Overflow-y: auto;
Position: absolute;
Top: 61px;
Left: 205px;
Bottom: 0px;
Right: 0px;
}
# Head {
Width: 100%;
Height: 61px;
Border-bottom: solid 1px # ccc;
Background-image: url (../img/topbg.gif );
Background-repeat: repeat-x;
}
# Logo {
Width: 189px;
Height: 61px;
Background-image: url (../img/logo_dmin.png );
}
# Left {
Padding-top: 15px;
Width: 205px;
Height: auto;
Overflow-y: auto;
Background-image: url (../img/leftbg.gif );
Position: absolute;
Top: 61px;
Bottom: 0px;
}
# Left h4 {
Margin-left: 18px;
Background-image: url (../img/menuf.gif );
Height: 20px;
Width: 160px;
Font-size: 12px;
Text-align: center;
Line-height: 20px;
// Font-weight: normal;
}
# Left li {
Padding-top: 5px;
Padding-bottom: 5px;
Padding-left: 36px;
Cursor: pointer;
Color: #555;
Font-size: 12px;
}
# Right {
Overflow-y: auto;
Position: absolute;
Top: 61px;
Left: 205px;
Bottom: 0px;
Right: 0px;
} The html code is
[Html]
<Div id = "head">
<Div id = "logo"> </div>
</Div>
<Div id = "left">
<H4> Article management
<Ul>
<Li> Add a topic </li>
<Li> add an article </li>
<Li> Manage articles </li>
</Ul>
<H4> website management
<Ul>
<Li> basic Settings </li>
<Li> others </li>
</Ul>
</Div>
<Div id = "right"> loading </div>
</Body>
<Div id = "head">
<Div id = "logo"> </div>
</Div>
<Div id = "left">
<H4> Article management
<Ul>
<Li> Add a topic </li>
<Li> add an article </li>
<Li> Manage articles </li>
</Ul>
<H4> website management
<Ul>
<Li> basic Settings </li>
<Li> others </li>
</Ul>
</Div>
<Div id = "right"> loading </div>
</Body>
In the past, frame splitting was used. Of course, this is very convenient and easy to use,
[Html]
<Frameset rows = "61, *, 24" cols = "*" framespacing = "0" frameborder = "no" border = "0">
<Frame src = "<{$ url}>/top" name = "top" scrolling = "no" noresize = "noresize"/>
<Frameset cols = "200, *">
<Frame src = "<{$ url}>/menu" name = "menu" noresize = "noresize" scrolling = "no"/>
<Frame src = "<{$ url}>/main" name = "main" noresize = "noresize" scrolling = "yes"/>
</Frameset>
<Frame src = "<{$ url}>/bottom" name = "bottom" scrolling = "No" noresize = "noresize"/>
</Frameset
<Frameset rows = "61, *, 24" cols = "*" framespacing = "0" frameborder = "no" border = "0">
<Frame src = "<{$ url}>/top" name = "top" scrolling = "no" noresize = "noresize"/>
<Frameset cols = "200, *">
<Frame src = "<{$ url}>/menu" name = "menu" noresize = "noresize" scrolling = "no"/>
<Frame src = "<{$ url}>/main" name = "main" noresize = "noresize" scrolling = "yes"/>
</Frameset>
<Frame src = "<{$ url}>/bottom" name = "bottom" scrolling = "No" noresize = "noresize"/>
</Frameset
None of the above is about php.
It is true that the php code written today is similar to the previous one. A new function learned today is
Mysql_affected_rows is used to read the number of rows affected by command execution.