<style> table td { border: 1px solid gray; padding: 5px 5px 2px 5px; } form, div { width: 400px; border: 1px solid gray; display: inline-block; vertical-align: top; } </style> <h1>匯入資料成為二維陣列,並輸出為表格的格式</h1> <form id='myform'> <textarea id='myscore' style="width: 300px; height: 200px"> </textarea><br /> <input type='button' onclick='gogo()' value='按我開始匯入' /> </form> <div id='res'>等等輸出表格處</div>