Php practice 17th days

Source: Internet
Author: User

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.

 

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.