html base標籤 target=_parent使用介紹

來源:互聯網
上載者:User

標籤:style   blog   http   color   使用   ar   for   sp   div   

<base>標籤為頁面上的所有連結規定預設地址或預設目標。 通常情況下,瀏覽器會從當前文檔的URL中提取相應的元素來填寫相對URL中的空白。

使用<base> 標籤可以改變這一點。瀏覽器隨後將不再使用當前文檔的URL,而使用指定的基本URL來解析所有的相對URL。

這其中包括 <a>、<img>、<link>、<form>標籤中的 URL。引用二:target就是點選連結後跳轉到的目標頁。

通俗點說,就是你當前頁面上的連結<a>,也包 括<img>、<link>、<form>,除非你指定了target,如<a heft="" target="_blank">連結一</a>,否則都會按照<base href="" target="_self">的規定在_self(本頁面)開啟。

這個base target=""還可以是top、_blank、parent或者其他frame名稱。

<base href="http://afish.cnblogs.com" target="_top" />

 

html base標籤 target=_parent使用介紹

聯繫我們

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