HTML第三課

來源:互聯網
上載者:User

標籤:個數   image   gen   第三課   控制項   padding   select 標籤   select   屬性   

表格table 標籤
  • border
  • width
  • height
  • cellspacing 儲存格之間的間隙 預設2
  • cellpadding 儲存格和儲存格內容之間的間隙 預設0
  • align
  • bgcolor
  • background
tr標籤 表示一行
  • align 行內文字的水平對齊 left/center/right
  • valign 行內文字的垂直對齊 top/middle/bottom
  • height 行高度
  • bgcolor
td標籤 表示儲存格
  • align
  • valign
  • width
  • height
th標籤 表頭

屬性 同 td

thead標籤tbody標籤tfoot 標籤caption標籤 定義表格標題colgroup/col表單form標籤
  • action
  • method 值 get/post 預設get
  • target
  • enctype
input標籤 單
  • name 屬性
  • type 屬性
    • text 預設 文字框
    • password 密碼框
    • radio 單選框
    • checkbox 複選框
    • file 檔案上傳
    • submit 提交按鈕
    • reset 重設按鈕
    • button 普通按鈕
    • image 把圖片作為提交按鈕樣子 不推薦
    • hidden 隱藏欄位
  • value屬性 預設值 type值不同vlaue的意義不一樣
  • size 屬性 控制輸入框寬度 適用於 text/password
  • maxlength 屬性 最大輸入字元個數 適用與text/password
  • checked 屬性 預設選中 適用於 radio/checkbox
  • readonly 唯讀 適用於text/password
  • disabled 表示不可用
button元素
  • type屬性
    • submit(預設)
    • reset
    • button
select 標籤
  • name
  • size
  • multiple 設定多選
  • disabed
option 標籤
  • value
  • disabled
  • selected 預設選項
optgroup 對select下的option進行分組textarea 文本域
  • name
  • disabled
  • rows 高度
  • cols 寬度
  • readonly
label
  • for 表單控制項的ID
fieldset 表單的外框legend 標題

HTML第三課

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.