Php practices: 17th days. Today I learned a very magical css layout method position: absolute; top: 61px; bottom: 0px; after setting position to absolute, top is the top side, left is the left side, so if you have learned a very magical css layout method today
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]
Article management
- Add topic
- Add article
- Manage articles
Website Management
Loading
Article management
- Add topic
- Add article
- Manage articles
Website Management
Loading
In the past, frame splitting was used. of course, this is very convenient and easy to use,
[Html]
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.
Gradient position: absolute; top: 61px; bottom: 0px; set position to absolute and top to left. if so...