濮阳杆衣贸易有限公司

主頁(yè) > 知識(shí)庫(kù) > HTML基礎(chǔ)必看---表單,圖片熱點(diǎn),網(wǎng)頁(yè)劃區(qū)和拼接詳解

HTML基礎(chǔ)必看---表單,圖片熱點(diǎn),網(wǎng)頁(yè)劃區(qū)和拼接詳解

熱門標(biāo)簽:地圖標(biāo)注地點(diǎn)下載 400電話辦理尚景 商丘電話自動(dòng)外呼系統(tǒng)怎么收費(fèi) 朝陽(yáng)自動(dòng)外呼系統(tǒng) 400電話是在哪里申請(qǐng) 昌邑外呼系統(tǒng) 周口導(dǎo)航地圖標(biāo)注 東莞人工外呼系統(tǒng)多少錢 默納克系統(tǒng)外呼顯示inns

一、表單

<form id="" name="" method="post/get" action="負(fù)責(zé)處理的服務(wù)端"> id不可重復(fù);name可重復(fù);get提交有長(zhǎng)度限制,并且編碼后的內(nèi)容在地址欄可見,post提交無(wú)長(zhǎng)度限制,且編碼后內(nèi)容不可見。

</form>

1、文本輸入

    文本框<input type="txt" name="" id="" value="" />

    注:上面設(shè)置value值,表示設(shè)置默認(rèn)值

    密碼框<input type="password" name="" id="" value="" />

    文本域<textarea name="" id="" cols=""(字符多少) rows=""(幾行高)></textarea>

    隱藏域<input type="hidden" name="" id="" value="" />

2、按鈕

    提交按鈕<input type="submit" name="" id="" disabled="disabled" value=""/>點(diǎn)擊后轉(zhuǎn)到form內(nèi)的提交服務(wù)器的地址

    注:上面中設(shè)置value值表示運(yùn)行時(shí)上面顯示的文字。

    重置按鈕<input type="reset" name="" id="" disabled="disabled" value=""/>

    普通按鈕<input type="button" name="" id="" disabled="disabled" value=""/>

    圖片按鈕<input type="image" name="" id="" disabled="disabled" src="圖片地址"/>

附:

       disabled,使按鈕失效;enable,使可用。

3、選擇輸入

    單選按鈕組<input type="redio" name="" checked="checked" value=""/>   name的值用來(lái)分組;value值看不見,是提交給程序用的;checked,設(shè)置默認(rèn)選項(xiàng)。

    注:?jiǎn)芜x按鈕組選中后不可取消。

   復(fù)選框組<input type="checkbox" name="" checked="checked" value=""/>

   注:checked="checked"表示一上來(lái)就選中,且復(fù)選框可選中可取消。

    文件上傳<input type="file" name="" id="" />

   <label for=""></label>

       <label> 標(biāo)簽為 input 元素定義標(biāo)注(標(biāo)記)。

       label 元素不會(huì)向用戶呈現(xiàn)任何特殊效果。不過(guò),它為鼠標(biāo)用戶改進(jìn)了可用性。如果您在 label 元素內(nèi)點(diǎn)擊文本,就會(huì)觸發(fā)此控件。就是說(shuō),當(dāng)用戶選擇該標(biāo)簽時(shí),瀏覽器就會(huì)自動(dòng)將焦點(diǎn)轉(zhuǎn)到和標(biāo)簽相關(guān)的表單控件上。

       <label> 標(biāo)簽的 for 屬性應(yīng)當(dāng)與相關(guān)元素的 id 屬性相同。

下拉列表框

    <select  name="" id="" size="" multiple="multiple">    --size=1時(shí),為菜單;>1時(shí),為列表。multiple為多選。

             <option value="值">內(nèi)容1</option>

             <option value="值" selected="selected">內(nèi)容2</option>    --selected,設(shè)為默認(rèn)

             <option value="值">內(nèi)容3</option>

    </select>

綜上HTML程序顯示:

XML/HTML Code復(fù)制內(nèi)容到剪貼板
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
  2. <html xmlns="http://www.w3.org/1999/xhtml">  
  3. <head>  
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  5. <title>無(wú)標(biāo)題文檔</title>  
  6. </head>  
  7.   
  8. <body background="22.jpg">  
  9. <form>  
  10. 賬號(hào):<input type="text" value="12345" disabled="disabled" /><br /><br />  
  11. 密碼:<input type="password" /><br /><br />  
  12. 說(shuō)說(shuō):<textarea cols="140" rows="8"></textarea><br /><br />  
  13. 請(qǐng)問:中華人民共和國(guó)成立于那一年?<input type="text" />  
  14. <input type="submit" value="提交" />  
  15. <input type="hidden" value="1949" />  
  16. <input type="reset" /><br />  
  17. <input type="button" value="登錄" /><br />  
  18. <input type="image" src="55.jpg" /><br />  
  19. <input type="radio" name="sex" /><br />  
  20. <input type="radio" name="sex" /><br />  
  21. <input type="checkbox" checked="checked" />可樂<br />  
  22. <input type="checkbox" />雞腿<br />  
  23. <input type="file" /><br /><br />  
  24. <select size="1">  
  25. <option value="11">可口可樂</option>  
  26. <option value="22">雪碧</option>  
  27. <option value="33" selected="selected">芬達(dá)</option>  
  28. </select>  
  29. </form>  
  30. </body>  
  31. </html>  

運(yùn)行結(jié)果顯示:

 

實(shí)例分析:做郵箱界面程序顯示

XML/HTML Code復(fù)制內(nèi)容到剪貼板
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
  2. <html xmlns="http://www.w3.org/1999/xhtml">  
  3. <head>  
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  5. <title>無(wú)標(biāo)題文檔</title>  
  6. </head>  
  7.   
  8. <body background="11.jpg">  
  9. <font face="華文隸書">  
  10. <table align="center" width="600" height="600" border="1" cellpadding="0" cellspacing="0">  
  11. <tr>  
  12. <td width="150">   郵箱:</td>  
  13. <td><form><input type="text" /></form></td>  
  14. </tr>  
  15. <tr>  
  16. <td></td>  
  17. <td valign="middle"><font color="#999999">需要通過(guò)郵箱激活賬戶,不支持sohu,21cn,sogou的郵箱</font></td>  
  18.   
  19. </tr>  
  20. <tr>  
  21. <td>   登錄用戶名:</td>  
  22. <td><form><input type="text" /></form></td>  
  23. </tr>  
  24. <tr>  
  25. <td></td>  
  26. <td valign="middle"><font color="#999999">僅在登錄時(shí)使用,字符數(shù)不少于4個(gè)</font></td>  
  27. </tr>  
  28. <tr>  
  29. <td>   顯示名稱:</td>  
  30. <td><form><input type="text" /></form></td>  
  31. </tr>  
  32. <tr>  
  33. <td></td>  
  34. <td><font color="#999999">即昵稱,字符數(shù)不少于2個(gè)</font></td>  
  35. </tr>  
  36. <tr>  
  37. <td>   密碼:</td>  
  38. <td><form><input type="password" /></form></td>  
  39. </tr>  
  40. <tr>  
  41. <td>   確認(rèn)密碼:</td>  
  42. <td><form><input type="password" /></form></td>  
  43. </tr>  
  44. <tr>  
  45. <td></td>  
  46. <td><font color="#999999">至少8位,必須包含字母、數(shù)字、特殊字符</font></td>  
  47. </tr>  
  48. <tr>  
  49. <td>   性別:</td>  
  50. <td><form><select size="1">  
  51. <option value="1" selected="selected"></option>  
  52. <option value="2"></option>  
  53. </select></form>  
  54. </td>  
  55. </tr>  
  56. <tr>  
  57. <td>   喜好:</td>  
  58. <td><form><select size="1">  
  59. <option value="1">打游戲</option>  
  60. <option value="2">打籃球</option>  
  61. <option value="3">看電影</option>  
  62. <option value="4" selected="selected">聽音樂</option>  
  63. <option value="5">旅游</option>  
  64. </select></form>  
  65. </td>  
  66. </tr>  
  67. <tr>  
  68. <td></td>  
  69. <td><form><input type="submit" value="注冊(cè)" /></form></td>  
  70. </tr>  
  71.   
  72. </table>    
  73. </font>  
  74. </body>  
  75. </html>  

運(yùn)行結(jié)果顯示:

二、圖片熱點(diǎn)

     規(guī)劃出圖片上的一個(gè)區(qū)域,可以做出超鏈接,直接點(diǎn)擊圖片區(qū)域就可以完成跳轉(zhuǎn)的效果。

示例:

XML/HTML Code復(fù)制內(nèi)容到剪貼板
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">  
  2. <html xmlns="http://www.w3.org/1999/xhtml">  
  3. <head>  
  4. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />  
  5. <title>無(wú)標(biāo)題文檔</title>  
  6. </head>  
  7.   
  8. <body>  
  9. <img src="a006.jpg" usemap="ditu" />  
  10. <map name="ditu">  
  11. <area shape="rect" coords="0,0,50,50" href="http://www.baidu.com" />  
  12. <area shape="circle" coords="265,118,80" href="http://qq.com" />  
  13. </map>  
  14. </body>  
  15. </html>  

設(shè)計(jì)界面:矩形和圓形的地方在運(yùn)行時(shí),鼠標(biāo)放上會(huì)變成小手狀,表示有鏈接。

三、網(wǎng)頁(yè)劃區(qū)和拼接

劃區(qū):在一個(gè)網(wǎng)頁(yè)里,規(guī)劃出一個(gè)區(qū)域用來(lái)展示另一個(gè)網(wǎng)頁(yè)的內(nèi)容。

示例:

拼接:在一個(gè)網(wǎng)絡(luò)頁(yè)面內(nèi),規(guī)劃出多個(gè)頁(yè)面窗口,以表格拼接的形式展示出來(lái)。(可以想象一下監(jiān)控畫面,多個(gè)畫面同時(shí)顯示)

示例:

以上這篇HTML基礎(chǔ)必看---表單,圖片熱點(diǎn),網(wǎng)頁(yè)劃區(qū)和拼接詳解就是小編分享給大家的全部?jī)?nèi)容了,希望能給大家一個(gè)參考,也希望大家多多支持腳本之家。

原文地址:http://www.cnblogs.com/H2921306656/archive/2016/07/09/5656699.html

標(biāo)簽:福建 阿拉善盟 銅陵 那曲 沈陽(yáng) 健身房 湖南 揭陽(yáng)

巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《HTML基礎(chǔ)必看---表單,圖片熱點(diǎn),網(wǎng)頁(yè)劃區(qū)和拼接詳解》,本文關(guān)鍵詞  HTML,基礎(chǔ),必看,---,表單,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無(wú)關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《HTML基礎(chǔ)必看---表單,圖片熱點(diǎn),網(wǎng)頁(yè)劃區(qū)和拼接詳解》相關(guān)的同類信息!
  • 本頁(yè)收集關(guān)于HTML基礎(chǔ)必看---表單,圖片熱點(diǎn),網(wǎng)頁(yè)劃區(qū)和拼接詳解的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    靖边县| 柳河县| 乌海市| 武乡县| 忻州市| 尉犁县| 镇雄县| 郁南县| 岑溪市| 荔波县| 云梦县| 漯河市| 黔南| 闽侯县| 宝鸡市| 冕宁县| 保亭| 株洲市| 娱乐| 淳安县| 彭山县| 饶河县| 大化| 双鸭山市| 望城县| 桓仁| 班玛县| 岳普湖县| 廊坊市| 南开区| 大同县| 新疆| 手机| 马龙县| 年辖:市辖区| 平度市| 淳化县| 平江县| 广宗县| 永福县| 横山县|