HTML隨筆2

來源:互聯網
上載者:User

標籤:

<iframe>內嵌架構
文法 <iframe src="URL" name="架構名">......</iframe>
scrolling(是否顯示捲軸) yes(顯示) no(不顯示)auto(自動)
frameborder(是否顯示邊框)1(顯示)0(不顯示)

form(表單)
基本結構 <form name="form1" action="URL" method="get">
使用者名稱:<input type="text" name="uname"/>
密碼:<input type="password" name="password"/>
</form>

name(名字)action(表單提交地址)target(開啟檔案)
method(表單資料提交的方式(get公開)(post保密)) enctype(MIME類型)

<input>(表單元素:輸入框)
type(類型)value(值)size(寬度) readonly(是否唯讀)
maxlength(輸入字元的最大長度)disabled(是否禁用)

在<input>中,type的不同就有不同的框
type="text"(文字框)text="password"(密碼框)
type="radio"(單選)type="checkbox"(複選)
type="button"(確定按鈕)type="submit"(提交按鈕)
type="reset"(重寫按鈕)type="image"(圖片按鈕)
PS:checked表示預設選中,要注意當type="radio",也就是單選時,name的值要一致。

HTML隨筆2

聯繫我們

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