编辑文本后点击显示结果
www.WoYouXian.net 我有闲 IT 教程
<html> <head> <style type="text/css"> p { border: thin solid #FF0000; } </style> <script type="text/javascript"> function changeBorderWidth() { document.getElementById("p1").style.borderBottomWidth="thick"; } </script> </head> <body> <input type="button" onclick="changeBorderWidth()" value="Change bottom border" /> <p id="p1">This is a paragraph</p> </body> </html>
© 2007-2008 woyouxian.net 版权所有
Contact Us