亚洲国产日韩欧美一区二区三区,精品亚洲国产成人av在线,国产99视频精品免视看7,99国产精品久久久久久久成人热,欧美日韩亚洲国产综合乱

目錄 搜尋
Attributes accesskey (attribute) class (attribute) contenteditable (attribute) contextmenu (attribute) data-* (attribute) dir (attribute) draggable (attribute) dropzone (attribute) Global attributes hidden (attribute) id (attribute) itemid (attribute) itemprop (attribute) itemref (attribute) itemscope (attribute) itemtype (attribute) lang (attribute) slot (attribute) spellcheck (attribute) style (attribute) tabindex (attribute) title (attribute) translate (attribute) Elements a abbr address area article aside audio b base bdi bdo blockquote body br button canvas caption cite code col colgroup data datalist dd del details dfn dialog div dl dt em embed fieldset figcaption figure footer form h1 head header hr html i iframe img input input type="button" input type="checkbox" input type="color" input type="date" input type="datetime"-local input type="email" input type="file" input type="hidden" input type="image" input type="month" input type="number" input type="password" input type="radio" input type="range" input type="reset" input type="search" input type="submit" input type="tel" input type="text" input type="time" input type="url" input type="week" ins kbd label legend li link main map mark menu menuitem meta meter nav noscript object ol optgroup option output p param picture pre progress q rp rt rtc ruby s samp script section select slot small source span strong style sub summary sup table tbody td template textarea tfoot th thead time title tr track u ul var video wbr Miscellaneous Attributes Block-level elements CORS enabled image CORS settings attributes Element Inline elements Kinds of HTML content Link types Microdata Optimizing your pages for speculative parsing Preloading content Reference Supported media formats Using the application cache Obsolete acronym applet basefont big blink center command content dir element font frame frameset hgroup image input type="datetime" isindex keygen listing marquee nextid noframes plaintext strike tt xmp
文字

HTML <base> 元素 指定用于一個(gè)文檔中包含的所有相對(duì)URL的基本URL。一份中只能有一個(gè)<base>元素。

一個(gè)文檔的基本URL, 可以一個(gè)腳本使用document.baseURI查詢。

內(nèi)容類別

元數(shù)據(jù)內(nèi)容。

允許的內(nèi)容

沒有,這是一個(gè)空的元素。

標(biāo)記遺漏

必須沒有結(jié)束標(biāo)簽。

允許父母

任何不包含任何其他<base>元素的<head>

允許ARIA角色

沒有

DOM界面

HTMLBaseElement

屬性

該標(biāo)簽包含全局屬性。 

href用于文檔中相對(duì) URL 地址的基礎(chǔ) URL。如果指定了該屬性,這個(gè)元素必須寫在其他任何屬性值是 URL 的元素之前。允許絕對(duì)和相對(duì)URL(但是請(qǐng)查看下面的注意節(jié)段)。

target為沒有顯示target引用屬性的元素指定一個(gè)名字或關(guān)鍵字,當(dāng)元素的超鏈接或?qū)е聦?dǎo)航的形式被激活時(shí),指定顯示結(jié)果的默認(rèn)位置。在HTML4中,其值是一個(gè)框的名字或者在關(guān)鍵字。在HTML5中,其值是一個(gè)瀏覽上下文(例如標(biāo)簽頁,窗口或者內(nèi)聯(lián)框)的名字或者關(guān)鍵字。以下的關(guān)鍵字指定特殊的意思:

  • _self: 載入結(jié)果到當(dāng)前的HTML4框(或者HTML5的瀏覽上下文)。如果沒有指定該屬性,那該值是元素的默認(rèn)值屬性值。

  • _blank: 載入結(jié)果到一個(gè)新的未命名HTML4窗口,或者一個(gè)新的HTML5的瀏覽上下文。

  • _parent: 對(duì)于HTML4,載入結(jié)果到當(dāng)前框的父級(jí)框;對(duì)于HTML5,載入結(jié)果到父級(jí)瀏覽上下文。如果沒有父級(jí)結(jié)構(gòu),該選項(xiàng)的行為和_self一樣。

  • _top: 在HTML4中,載入結(jié)果到全部原始窗口,并且取消其他所有框。在HTML5中,載入結(jié)果到頂級(jí)瀏覽上下文(該瀏覽上下文是當(dāng)前上下文的最頂級(jí)上下文)。如果沒有父級(jí),該選項(xiàng)的行為和_self一樣。

使用說明

如果指定了多個(gè) <base> 元素,只會(huì)使用第一個(gè) href 和 target 值, 其余都會(huì)被忽略。

示例

<base href="http://www.example.com/page.html"><base target="_blank" href="http://www.example.com/page.html">

規(guī)范

Specification

Status

Comment

HTML Living StandardThe definition of '<base>' in that specification.

Living Standard

No change since last snapshot.

HTML5The definition of '<base>' in that specification.

Recommendation

Specified the behavior of target

HTML 4.01 SpecificationThe definition of '<base>' in that specification.

Recommendation

Added the target attribute

瀏覽器兼容性

Feature

Chrome

Edge

Firefox

Internet Explorer

Opera

Safari

Basic Support

(Yes)

(Yes)

1.0

(Yes)1

(Yes)

(Yes)

href

(Yes)

(Yes)

1.0

(Yes)

(Yes)

(Yes)

target

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

Feature

Android

Chrome for Android

Edge mobile

Firefox for Android

IE mobile

Opera Android

iOS Safari

Basic Support

(Yes)

(Yes)

(Yes)

1.0

(Yes)

(Yes)

(Yes)

href

(Yes)

(Yes)

(Yes)

1.0

(Yes)

(Yes)

(Yes)

target

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

(Yes)

OpenGraph

OpenGraph meta-tags, do not acknowledge base-url and should always have full URLs, for example:

<meta property='og:image' content='http://example.com/thumbnail.jpg'>
上一篇: 下一篇: