编辑文本后点击显示结果
www.WoYouXian.net 我有闲 IT 教程
<html> <body id="myid" class="mystyle"> <script type="text/javascript"> x=document.getElementsByTagName('body')[0]; document.write("Body CSS class: " + x.className); document.write("<br />"); document.write("An alternate way: "); document.write(document.getElementById('myid').className); </script> </body> </html>
© 2007-2008 woyouxian.net 版权所有
Contact Us