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.