1痢法、<a>標(biāo)簽
- 常用屬性
- href =(hyper refence) 超鏈接 用于連接網(wǎng)頁
- target
- download
- rel-noopener
- a 的href的取值
- 網(wǎng)址
http://google.com - 路徑
/a/b/c - 偽協(xié)議
- js代碼
- mailto:郵箱
- tel:手機(jī)號
- id
herf="#xxx"
- 網(wǎng)址
<a href="javascript:;"> 查看</a>
↑一個什么都不做的A標(biāo)簽
- a 的target的取值(比想象中的要復(fù)雜)
- 內(nèi)置名字
target="_top"
target="_self" (新頁面在當(dāng)前頁面打開 )
target="_parent"
target="_blank" (在空白頁面打開)
- 內(nèi)置名字
2、<iframe>標(biāo)簽
作用:內(nèi)嵌窗口幕垦,已經(jīng)很少使用了。除了老系統(tǒng)∫唬現(xiàn)在用ajax
3格嘁、<table>標(biāo)簽
三個常用子標(biāo)簽
<thead>
<tr> //table row 表格里的一行
<th> // 一行里面的一格
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
</tfoot>
- 相關(guān)的樣式
table-layout
border-collapse
border-spacing
4这橙、<img>標(biāo)簽
- 作用:插入圖片
- 屬性
- alt
- height
- width
- src
- 事件
- onload
- onerror
作用:監(jiān)聽圖片是否加載成功
- 響應(yīng)式(重要!0旧ァ)
max-width:100% //自適應(yīng)所有屏幕大小
5笋粟、<form>標(biāo)簽
- 作用:發(fā)get火post請求,然后刷新頁面析蝴。
- 屬性
- action
- method
- autocomplete 自動填充
- target
6害捕、<input>標(biāo)簽
- 作用:讓用戶輸入內(nèi)容
- 屬性
- 類型 type:button/checkbox/email/flie/hidden.....
- 其他 name/autofocus/checked/disabled/....
- 事件
- onchange/onfocus/onblur
- 驗證器
- html新增功能