运行 ❯
获取您
自己的
网站
×
更改方向
保存代码
更改主题,深色/浅色
前往 Spaces
<!DOCTYPE html> <html> <body> <textarea id="myTextarea"> At w3schools.com you will learn how to make a website. We offer free tutorials in all web development technologies. </textarea> <p>Click the button to change the width and height of the text area.</p> <button type="button" onclick="myFunction()">Try it</button> <script> function myFunction() { document.getElementById("myTextarea").cols = "100"; document.getElementById("myTextarea").rows = "10"; } </script> </body> </html>