3、網頁製作Dreamweaver(表單form)

來源:互聯網
上載者:User

標籤:http   ar   io   os   sp   for   strong   on   檔案   

表單form

 

 

(虛線不顯示)

1、寫法:

<form id="form1" name="form1" method="post" action="">

</form>

 

1、  解釋

name、id自訂,用於尋找此塊內容

 

3、內容

 (1)文字框:可以設定width,height

 <label for="denglu">姓名</label>                           ————標籤,可以不寫,為易於尋找

 <input  type="text"  name="textfield"  id="textfield" value="你好" />———value是預設詞

 

        

(2)隱藏欄位

必須在表單中,儲存臨時資料

<input type="hidden" name="hiddenField" id="hiddenField" />

在設計地區顯示:

(3)文本地區

是一個長的文字框,可以設定width,height

<textarea name="textarea" id="textarea" cols="45" rows="5"></textarea>

 

(4)複選框

  <input type="checkbox" name="checkbox" id="checkbox" checked="checked" />

  <label for="checkbox"></label>

*checked=”checked”表示已經選中

(5)單選框

將name改成同一個名,就可以實現單選擇效果(id不能改,用於區分)

  <input type="radio" name="radio" id="radio" value="radio" />

  <label for="radio"></label>

  <input type="radio" name="radio" id="radio2" value="radio2" />

  <label for="radio2"></label>

  <input type="radio" name="radio" id="radio3" value="radio3" />

  <label for="radio3"></label>

  <input type="radio" name="radio" id="radio4" value="radio4" />

  <label for="radio4"></label>

 

選項按鈕組:

    <label>

      <input type="radio" name="RadioGroup1" value="單選" id="RadioGroup1_0" />

      單選</label>

    <br />

    <label>

      <input type="radio" name="RadioGroup1" value="單選" id="RadioGroup1_1" />

      單選</label>

 

*複選同單選

 

(6)挑選清單單

  <label for="select"></label>

    <select name="select" id="select">

    <option value="1" selected="selected">張三</option>

    <option value="2">李四</option>

    <option value="3">王五</option>

    </select>

 

(7)導向功能表

 <select  name="jumpMenu" id="jumpMenu" onchange="MM_jumpMenu(‘parent‘,this,0)">

 <option>項目1</option>

</select>

(8)映像域 (可點擊)

<input type="image" name="imageField" id="imageField" src="../../二維碼 (1).jpg" />

(9)檔案域

<label for="fileField"></label>

       <input type="file" name="fileField" id="fileField" />

 

(10)按鈕

<input type="submit" name="button" id="button" value="提交" />

 

*submit是提交,reset是重設

(11)標籤

         <label></label>

(12)欄位集 (一堆label)

         <fieldset>

         </fieldset>

隱藏輸入框裡面的文字顯示為“······”文字框中input  type=”password”

 

*<pre>保留書寫的源格式

*<lable>可以在網頁中實現快速尋找:

<lable  accesskey=”u” for=”userid”>

 <td><input type=”text”  id=”userid”/></td>

 <td>hello</td> 

</lable>(游標在其他地區的情況下,只點hello就可以到文字框中,或者點alt+u也可以直接跳轉)

*<sub>下標<sup>上標

頭標籤:

*<base>所有超連結的href位置、target屬性(_blank或者別的)

*<meta name=”keywords” content=”各種關鍵詞”>  用於提高網站首頁的搜尋展現率,根據關鍵詞來判斷(現在不常用了)

*<meta http-equiv=”refresh” content=”3;url=http://www.xxxx.com”/>重新整理頁面三秒後自動彈到一個網頁(沒指定連結的時候頁面本身重新整理)

超連結中連結郵箱的用法:<a href=”mailto:[email protected]?subject=xx&[email protected]”

3、網頁製作Dreamweaver(表單form)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.