W3School TIY Editor
W3School 在线教程
改变方向
暗黑模式
运行代码
<html> <head> <style type="text/css"> p { border: thin solid #00FF00; outline: thick solid #FF0000; } </style> <script type="text/javascript"> function changeOutlineWidth() { document.getElementById("p1").style.outlineWidth="thin"; } </script> </head> <body> <input type="button" onclick="changeOutlineWidth()" value="Change outline width" /> <p id="p1">This is a paragraph</p> </body> </html>