CSS and PHP notes to share in Web application development application development

Source: Internet
Author: User
Some problems encountered in the application and solutions, do some records, for later use. I novice, technology is not skilled, notes are naïve. Ridicule please chuckle.
1, about the absolute positioning of the layer.
There are two div layers, where the main class div is the whole layer, and the Cloud class div is the absolute positioning layer, and the effect is to display a cloud GIF picture in the upper right corner of the screen. The div layout code is as follows:

Copy the Code code as follows:




...


In the process, the cloud layer was placed in the main layer, causing IE to not show the cloud layer. After the cloud layer out of the main layer outside, and the main position changed to relative, only to solve the problem. The CSS code is as follows:

Copy the Code code as follows:


. main{
position:relative;
top:30px;
width:600px;
Height:auto;
Text-align:left;
Background-color: #FFFFFF;
border:5px solid #FF0011;
}
. Cloud {
Background:url (.. /image/cloud.gif) no-repeat 100% 50%;
height:171px;
Position:absolute;
right:0px;
top:0px;
width:345px;
z-index:1000;
}


2, about the date of the drop-down box to select the implementation.
The drop-down boxes in year and month are sluggish, and dates cannot change with the years and months. But this is a relatively basic solution, but also refer to the method of others online. We will study the newer methods later.

Copy the Code code as follows:


$months = Array (1 = ' January ', ' February ', ' March ', ' April ', ' May ', ' June ', ' July ', ' August ', ' September ', ' October ', ' November ', ' December ');
$days = range (1,31);
$years = range (1930,2011);
Echo ''; foreach ($years as $value) {echo '$value year "; if ($value = = 1987) {echo '1987 '; }} Echo '';
Echo ''; foreach ($months as $key = + $value) {echo "$value "; } Echo '';
Echo ''; foreach ($days as $value) {echo '$value Day "; } Echo '';
?>


3, to be continued.

The above describes the Web application development and application development involved in the CSS and PHP note sharing, including Web application development content, I hope to be interested in PHP tutorial friends helpful.

  • Related Article

    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.