?
This document uses PHP Chinese website manual Release
如果頁面上的腳本類型不受支持或者當前在瀏覽器中關閉了腳本,則在HTML <noscript> 元素中定義腳本未被執(zhí)行時的替代內容。
內容類別 | Metadata content, flow content, phrasing content. |
---|---|
允許的內容 | 當腳本被禁用并且它是 當腳本被禁用并且它不是 否則:flow content 或 phrasing content 。 |
標記遺漏 | 沒有,起始和結束標簽都是強制性的。 |
允許父母 | 任何接受短語內容的元素,如果沒有祖先<noscript>元素,或者在一個<head>元素中(但只對一個HTML文檔),這里再次如果沒有祖先<noscript>元素。 |
允許ARIA角色 | 沒有 |
DOM界面 | HTMLElement |
這個元素只包含全局屬性。
<noscript> <!-- anchor linking to external file --> <a href="https://www.mozilla.com/">External Link</a></noscript><p>Rocks!</p>
Rocks!
External Link
Rocks!
Specification | Status | Comment |
---|---|---|
HTML Living StandardThe definition of '<noscript>' in that specification. | Living Standard | |
HTML5The definition of '<noscript>' in that specification. | Recommendation | |
HTML 4.01 SpecificationThe definition of '<noscript>' in that specification. | Recommendation |
Feature | Chrome | Edge | Firefox | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|---|
Basic Support | (Yes) | (Yes) | 1 | (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 | (Yes) | (Yes) | (Yes) |