我将全部的代码上传到了github,你可以下载查看 <!-------change the background color--------------> <script> function color1(event) { var cubebody=document.getElementById('body_color'); cubebody.className = 'graydient1'; } function color2() { var cubebody=document.
今天项目遇到了标题所说的问题,找到一篇很高效的例子,值得学习. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Change.html</title> <meta http-equiv="content-type" content="text/html; charset=