Edit The Code:
See Result »
Try it Yourself - ©
w3big.com
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>本教程(w3big.com)</title> <style> #myDIV{ border:1px solid black; width:300px; height:300px; } </style> </head> <body> <p>点击“尝试一下”按钮改变 DIV 元素的 borderTopRightRadius 属性:</p> <button onclick="myFunction()">尝试一下</button> <div id="myDIV"> <h1>Hello</h1> </div> <script> function myFunction(){ document.getElementById("myDIV").style.borderTopRightRadius = "25px"; } </script> </body> </html>