-
html框架
框架結(jié)構(gòu)標(biāo)簽 - <frameset>
- 框架結(jié)構(gòu)標(biāo)簽定義如何將窗口分割為框架
- 每個 frameset 定義了一系列行或列
- rows/columns 的值規(guī)定了每行或每列占據(jù)屏幕的面積
舉個例子:
<frameset cols="25%, 75%">
<frame src="frame_a.html">
<frame src="frame_b.html">
</frameset>
-
html內(nèi)聯(lián)框架
iframe 用于在網(wǎng)頁內(nèi)顯示網(wǎng)頁
添加 iframe 的語法
<iframe src="URL" whidth="200" height="200" frameborder="0"></iframe>
src 為內(nèi)聯(lián)頁面的位置,width 和 height 用來規(guī)定 iframe 的高度和寬度,屬性值的默認單位是 px,但也可以使用百分比來設(shè)定。frameborder 屬性規(guī)定是否顯示 iframe 周圍的邊框,設(shè)置屬性值為 “0” 就可以移除邊框。
-
html腳本
<noscript> 標(biāo)簽
<noscript> 標(biāo)簽提供無法使用腳本時的替代內(nèi)容,比如在瀏覽器禁用腳本時,或者在瀏覽器不支持客戶端腳本時。
<noscript> 元素可包含普通 html 頁面的 body 元素中能夠找到的所有元素。
只有在瀏覽器不支持腳本或者禁用腳本時,才會顯示 noscript 元素中的內(nèi)容。
-
html表單
<fieldset> 組合表單數(shù)據(jù)
<fieldset> 元素組合表單中的相關(guān)數(shù)據(jù)
<legend> 元素為 <fieldset> 元素定義標(biāo)題
html Form 屬性
下面是 <form> 的屬性:
accept-charset - 規(guī)定在被提交表單中使用的字符集(默認:頁面字符集)
action - 規(guī)定向何處提交表單的地址(URL)(即提交頁面)
autocomplete - 規(guī)定瀏覽器應(yīng)該自動完成表單(默認:開啟)
enctype - 規(guī)定被提交數(shù)據(jù)的編碼(默認:url-encoded)
method - 規(guī)定在提交表單時所用的 HTTP 方法(默認:GET)
name - 規(guī)定識別表單的名稱(對于 DOM 使用:document.forms.name)
novalidate - 規(guī)定瀏覽器不驗證表單
target - 規(guī)定 action 屬性中地址的目標(biāo)(默認:_self)