<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                企業??AI智能體構建引擎,智能編排和調試,一鍵部署,支持知識庫和私有化部署方案 廣告
                # HTML id 屬性 [HTML 全局屬性](/tags/html_ref_standardattributes.asp) ## 實例 通過 JavaScript 利用 id 屬性來改變一段文本: ``` <html> <head> <script type="text/javascript"> function change_header() { document.getElementById("myHeader").innerHTML="Nice day!"; } </script> </head> <body> <h1 id="myHeader">Hello World!</h1> <button onclick="change_header()">Change text</button> </body> </html> ``` (可以在本頁底部找到更多實例) ## 定義和用法 id 屬性規定 HTML 元素的唯一的 id。 id 在 HTML 文檔中必須是唯一的。 id 屬性可用作鏈接錨(link anchor),通過 JavaScript(HTML DOM)或通過 CSS 為帶有指定 id 的元素改變或添加樣式。 ## 支持 W3C: "W3C" 列指示 W3C 的 HTML/XHTML 推薦標準中是否定義了該屬性。 | IE | Firefox | Opera | Safari | W3C | | --- | --- | --- | --- | --- | | YES | YES | YES | YES | YES | ## 語法 ``` <element id="_value_"> ``` ### 屬性值 | 值 | 描述 | | --- | --- | | _id_ | 規定元素的唯一 id。 | ## 親自試一試 - 實例 [向 HTML 元素添加唯一的 id](/tiy/t.asp?f=html_standard_id) 如何向 HTML 元素添加 id 屬性。 [在 CSS 中使用 id 屬性](/tiy/t.asp?f=html_standard_id_css) 如何在 CSS 中使用 id 屬性 [HTML 全局屬性](/tags/html_ref_standardattributes.asp)
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看