如果發覺自己無法使用一些功能或出現問題,請按重新整理一次,並待所有網頁內容完全載入後5秒才進行操作。
本帖最後由 aquarius6913 於 2019-5-17 03:10 PM 編輯
方法很多
我用最簡單Javascript + HTML隱藏法
你自己在Javascript 抓參數用if...else判斷就可
- Javascript寫法
- document.getElementById("DV_1").style.visibility="hidden";
- document.getElementById("DV_2").style.visibility="visible";
複製代碼- <!DOCTYPE html>
- <html>
- <head>
- <style>
- #myHeader {
- background-color: lightblue;
- color: black;
- padding: 40px;
- text-align: center;
- }
- </style>
- </head>
- <body>
- <h2>The id Attribute</h2>
- <p>Use CSS to style an element with the id "myHeader":</p>
- <h1 id="myHeader">My Header</h1>
- <div id="DV_1" style="visibility: hidden;">
- <input name="submit" type="submit" value="送出_1"></input>
- </div>
- <div id="DV_2" style="visibility: none;">
- <input name="submit" type="submit" value="送出_2"></input>
- </div>
- </body>
- </html>
複製代碼
... |