如题:我在vs2008下发布网站时,报错,错误 432 验证(CSS 2.0):“behavior”不是已知的 CSS 属性名。 用的asp.net3.5,请问该怎么解决这个问题

解决方案 »

  1.   

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" ><head>
    <title>left</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
    <link href="style.css" rel="stylesheet" type="text/css" />
    <style type="text/css">.menubar{
    behavior:url(menubar.htc);
    }

    .barcontent{
    display:none;
    }
    .barcontent1{
    overflow: hidden;
    }
    .bartitle
    {
    background: url(images/toolbar_bg.gif);
    background-repeat: repeat-x;
    height:25px;
    font-variant: normal;
    cursor:hand;
    }
    .datalist{
    color:white;
    line-height: 180%;
    padding-left:5pt;
    }
    .clstrc{
    display:none;
    }
    .clstrcshow{}
    .clstr{
    color:white;
    cursor:hand;
    }</style><script type="text/javascript">
    <!--
    function init()
    {
    }function RemoveAll()
    {
    top.fraMain.win.removeall();
    }function AddWin(url, title)
    {
    top.fraMain.AddWin(url, title);
    }//-->
    </script>
    </head>
    <body>
    </body>
    </html>
      

  2.   

    http://hi.baidu.com/zqgm0412/blog/item/e7cf9af717d81427730eec19.html
    behavior在Css手册里的说明
      

  3.   

    无关紧要Behavior是ie专属css,vs2008应该采用了w3c标准验证,所以出错你的页面运行在ie下应该没问题,ff就不好说了