5-10日記

2018-05-15 09:22 更新

【17-05-10】

<a></a>

href屬性: path 路徑可以為:(http://www.baidu.com?id=12 ) 也可以為相對(duì)路徑, (href="test/demo.html") target 屬性: _blank :新窗口打開(kāi),。 _self 當(dāng)前窗口開(kāi)。 _top 當(dāng)前窗口,可以前進(jìn)后退 _search 新窗口打開(kāi) _parent 當(dāng)前窗口打開(kāi),可以前進(jìn)后退。 demo: <a href="http://www.baidu.com" target="_blank" title="提示信息">。

<img/>

src 必須屬性: 圖片的path 相對(duì)路徑。 border:邊線 title :圖片標(biāo)題,鼠標(biāo)懸停提示信息。 alt必須屬性:當(dāng)圖片加載不出。顯示alt的文字。v8引擎使用。 width:寬度 height:高度 demo: <img src="img/g.jgp"alt="" title="圖片名"width="120px" height="230px"/> src:相對(duì)路徑3中方式: 直接書(shū)寫(xiě)文件名字a.jpg 找上級(jí)(../)找下級(jí) 文件名稱+具體文件

demo:路徑的3中表現(xiàn)形式。 <img src="../img/logo-1_03.jpg"/> <img src="news3.png" /> <img src="img/news3.png" alt="" /> <div></div> <span></span>標(biāo)簽: <table><tr><td></td></tr></table>標(biāo)簽: 操作td標(biāo)簽: colspan:num 合并列的數(shù)字 rowspan:num 合并行的數(shù)字 width height border bordercolor sellspceing sellpadding(單元格和內(nèi)容間距) <table width="300px" height="300px" valign="top" align="center" border="1px"> <tr valign="top"><td>1</td><td>23</td></tr> <tr><td>1</td><td>23</td></tr> <tr><td>1</td><td>23</td></tr> </table>

以上內(nèi)容是否對(duì)您有幫助:
在線筆記
App下載
App下載

掃描二維碼

下載編程獅App

公眾號(hào)
微信公眾號(hào)

編程獅公眾號(hào)