RT,谢谢大家

解决方案 »

  1.   

    <body style="backgroundcolor:blue;">
      

  2.   

    <body runat="server" id="theBoy">然后你可以在后台代码视图中看看智能感知中显示的theBody的情况。你可以使用其Attributes、Style、SkinID、Controls、FindControl等等。
      

  3.   

    楼上几位说的是,补充一下。
    如果用CSS
    body
    {background:#00ff00;
    }
    如果想在程序中动态控制背景颜色,首先按楼上的方法为body定义ID
    然后写JS脚本
    document.getElementByID("theBoy").setAttribute("backgroundcolor","red");