Introduction: This is a detailed page of CSS and PHP Notes involved in application development. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 342557 'rolling = 'no'>
Use SAE to develop a simple Weibo application in the last week. The application itself is very simple, using PHPAlgorithmIt can be easily implemented. But there are a lot of troubles when calling Sina API. The application is still somewhat unstable.
Record some problems and solutions encountered in the application for future use. I am a newbie, I am not skilled in technology, and my notes are childish. Smile.
1. Absolute positioning of the layer.
There are two DIV layers, where the main class div is the overall layer, and the cloud class div is the absolute positioning layer. The effect is to display a GIF image of a cloud in the upper right corner of the screen. Div LayoutCodeAs follows:
<Div class = "Cloud"> </div>
<Div class = "Main">
...
</Div>
At one time, the cloud layer was placed in the main layer during the process, which made ie unable to display the cloud layer. Then, the cloud layer is released outside the main layer, and the position of main is changed to relative to solve this problem. The CSS code is as follows:
1. Main {
2 position: relative;
3 Top: 30px;
4 width: 600px;
5 Height: auto;
6 text-align: left;
7 Background-color: # ffffff;
8 Border: 5px solid # ff0011;
9}
10. Cloud {
11 background: URL (../image/cloud.gif) No-repeat 100% 50%;
12 Height: 171px;
13 Position: absolute;
14 Right: 0px;
15 top: 0px;
16 width: 345px;
17 Z-index: 1000;
18}
2. Select implementation in the drop-down box of year, month, and day.
The drop-down box of year, month, and day is dull, and the date cannot change with the change of year and month. However, this is a relatively preliminary solution, and also referred to other people's methods on the Internet. The updated method will be studied later.
1 <? PHP
2 $ months = array (1 => 'August 11', 'August 11', 'August 11', 'August 11', 'August 11', 'August 11 ', 'August 11', 'August 11', 'August 11', 'August 11', 'August 11 ');
3 $ days = range (1, 31 );
4 $ years = range (1930,2011 );
5 echo '<select name = "year"> ';
6 foreach ($ years as $ value ){
7 Echo "<option value = \" $ value \ "> $ value year </option> ";
8 if ($ value = 1987 ){
9 echo '<option value = \ '1987 \' selected> 1987 </option> ';
10}
11}
12 echo '</SELECT> ';
13 echo '<select name = "month"> ';
14 foreach ($ months as $ key => $ value ){
15 echo "<option value = \" $ key \ "> $ value </option> ";
16}
17 echo '</SELECT> ';
18 echo '<select name = "day"> ';
19 foreach ($ days as $ value ){
20 echo "<option value = \" $ value \ "> $ value </option> ";
21}
22 echo '</SELECT> ';
23?>
3. To be continued.
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/342557.html pageno: 6.