當柳上原的風吹向天際的時候...

          真正的快樂來源于創造

            BlogJava :: 首頁 :: 聯系 :: 聚合  :: 管理
            368 Posts :: 1 Stories :: 201 Comments :: 0 Trackbacks
          效果:


          代碼:
          <!doctype html public "-//w3c//dtd html 4.0 transitional//en">
          <html>
           
          <head>
            
          <title>表單示例</title>
             
          <style type="text/css">
                  <!--
                  #formDiv 
          {
                    width
          :600px;
                    padding
          :20px;
                    text-align
          :left;
                  
          }
                  #formDiv fieldset 
          {
                    margin
          : 1em 0;
                    padding
          :10px;
                    border
          : 1px solid #ccc;
                  
          }
                  #formDiv legend 
          {
                    margin
          : 1em 0;
                    padding
          : 0 .5em;
                    color
          : #036;
                    background
          : transparent;
                    font-size
          : 1.3em;
                    font-weight
          : bold;
                  
          }
                  #formDiv label 
          {
                    float
          : left;
                    width
          : 100px;
                    padding
          : 0 1em;
                    text-align
          : right;
                    color
          : #003366;
                  
          }
                  #formDiv p 
          {
                    float
          : left;
                    padding
          : 0 1em;
                    text-align
          : left;
                    color
          : #003366;
                  
          }
                  #formDiv fieldset div
          {
                    clear
          :both;
                    margin-top
          : 5px;
                  
          }
                  #formDiv fieldset div.inputText input, fieldset div.inputText textarea 
          {          
                    border-top
          : 1px solid #555;
                    border-left
          : 1px solid #555;
                    border-bottom
          : 1px solid #ccc;
                    border-right
          : 1px solid #ccc;
                    padding
          : 1px;
                    color
          : #333;
                  
          }
                  #formDiv div.submitDiv 
          {
                    margin-top
          : 10px;
                  
          }
                  #formDiv div.submitDiv input 
          {
                    border
          : 1px solid #333;
                    padding
          : 2px 1em;
                    background
          : #555;
                    color
          : #fff;
                  
          }
                  -->
              
          </style>    
           
          </head>

           
          <body>    
              
          <div id="formDiv">
                  
          <form action="#" method="post">
                      
          <fieldset>
                      
          <legend>表單示例</legend>
                      
          <p>請填寫以下表單.</p>
                      
          <div class="inputText">
                          
          <label for="textBox">文本框:</label>
                          
          <input  name="textBox" type="text"/>
                          
          <span/>提示文字<span>
                      
          </div>
                      
          <div class="inputText">
                          
          <label for="textArea1">文本域:</label>
                          
          <textarea name="textArea1" cols="40" rows="10"/></textarea>
                          
          <span/><span>
                      
          </div>
                      
          <div>
                          
          <label for="selectBtn">選擇框:</label>
                          
          <select id="selectBtn" name="selectBtn">
                              
          <option value="1">選項一</option>
                              
          <option value="2">選項二</option>
                              
          <option value="3" selected="selected">選項三</option>
                              
          <option value="4">選項四</option>
                          
          </select>
                          
          <span/><span>
                      
          </div>
                      
          <div>
                          
          <label for="checkBox1">復選框:</label>
                          選項一:
          <input type="checkbox" name="checkBox1" id="checkBox1" value="1" />
                          選項二:
          <input type="checkbox" name="checkBox1" id="checkBox1" value="2"/>
                          選項三:
          <input type="checkbox" name="checkBox1" id="checkBox1" value="3" checked/>
                          
          <span/><span>
                      
          </div>
                      
          <div>
                          
          <label for="radioBtn">單選框:</label>
                          
          <input id="radioBtn" name="radioBtn" type="radio" value="0" />選項1
                          
          <input id="radioBtn" name="radioBtn" type="radio" value="1" />選項2
                          
          <input id="radioBtn" name="radioBtn" type="radio" value="2" checked/>選項3
                          
          <input id="radioBtn" name="radioBtn" type="radio" value="3" />選項4
                          
          <span/><span>
                      
          </div>
                      
          <div class="submitDiv">
                          
          <label for="submitBtn">&nbsp;</label>
                          
          <input name="submitBtn" type="submit" value="提交" />
                      
          </div>
                      
          </fieldset>
                  
          </form>
              
          </div>
           
          </body>
          </html>

          代碼下載:
          http://www.aygfsteel.com/Files/heyang/formSample20090827115416.rar

          posted on 2009-08-27 11:55 何楊 閱讀(235) 評論(0)  編輯  收藏
          主站蜘蛛池模板: 马关县| 平舆县| 大连市| 海兴县| 苗栗市| 双峰县| 芦溪县| 新和县| 余姚市| 兖州市| 肥乡县| 安国市| 高密市| 泌阳县| 衡水市| 乐平市| 沈丘县| 登封市| 莆田市| 鄂尔多斯市| 辉县市| 修武县| 南京市| 壶关县| 大名县| 南投市| 揭阳市| 苏尼特左旗| 房产| 错那县| 新密市| 山西省| 乌鲁木齐市| 伊吾县| 峡江县| 社旗县| 茶陵县| 广汉市| 福贡县| 历史| 苏尼特左旗|