Php practice 17th days _ PHP Tutorial-php Tutorial

Source: Internet
Author: User
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

  • Basic settings

  • Others



Loading







Article management


  • Add topic

  • Add article

  • Manage articles


Website Management

  • Basic settings

  • Others



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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.