<base href="http://yudans.net/style/" />以下是使用 <base> 標籤與否的分別
<html> <head> <base href="http://yudans.net/yd/" /> <link rel="stylesheet" type="text/css" href="yd.css" /> </head> <body> <img src="apple.gif" alt="" /> <a href="example.htm">例子</a> </body> </html>
<html> <head> <link rel="stylesheet" type="text/css" href="http://yudans.net/yd/yd.css" /> </head> <body> <img src="http://yudans.net/yd/apple.gif" alt="" /> <a href="http://yudans.net/yd/example.htm">例子</a> </body> </html>
屬性 Attribute | 描述 Description |
href | 設定根基位置 |