<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>

                ThinkChat2.0新版上線,更智能更精彩,支持會話、畫圖、視頻、閱讀、搜索等,送10W Token,即刻開啟你的AI之旅 廣告
                ![](https://box.kancloud.cn/23666ea5fab7dc64e3488b5b9cc8e584_684x483.gif) ``` <style> table,th,td{ border:1px solid #333; border-collapse: collapse; /* 邊框折疊,默認邊框有一定寬度 */ } table{ width: 500px; line-height: 50px; text-align: center; } div{ margin-top: 30px; margin-bottom: 30px; } </style> </head> <body> <div> <input type="text" id="shop"> <input type="text" id="cell"> <button id="add">添加</button> </div> <table id="table"> <thead> <tr><th>商城</th><th>手機</th></tr> </thead> <tbody> <tr><td>tmall</td><td>小米</td></tr> <tr><td>tmall</td><td>小米</td></tr> <tr><td>tmall</td><td>小米</td></tr> <tr><td>tmall</td><td>小米</td></tr> <tr><td>tmall</td><td>小米</td></tr> </tbody> </table> <script> var table = document.getElementById("table"); var rows = table.tBodies[0].rows; table.tHead.style.background = "#abcdef"; background(); var shop = document.getElementById("shop"); var cell = document.getElementById("cell"); var add = document.getElementById("add"); add.onclick = function(){ var shopValue = shop.value; var cellValue = cell.value; var tr = document.createElement("tr"); var td = document.createElement("td"); td.innerHTML = shopValue; var td1 = document.createElement("td"); td1.innerHTML = cellValue; //如果內容為空則點擊添加按鈕無效 if(shopValue != "" || cellValue != ""){ tr.appendChild(td); tr.appendChild(td1); table.tBodies[0].appendChild(tr); } else{ ; } var rows = table.tBodies[0].rows; table.tHead.style.background = "#abcdef"; background(); } function background(){ for(var i=0;i<rows.length;i++){ if(i%2==0){ rows[i].style.background = "#fedcba"; } else{ rows[i].style.background = "#cbafed"; } } } </script> ```
                  <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>

                              哎呀哎呀视频在线观看