check it outhttp://msdn2.microsoft.com/en-us/library/ms531416.aspx

解决方案 »

  1.   

    那个微软文档我看过一次,我想知道  {       IE\:clientCaps       {behavior:url(#default#clientCaps)}}       
    这样的写法意图,那个#,还有那个(#default#clientCaps),
    有人说是采用默认连接测试clientCaps 中连接属性的。不知道是不是这样?
      

  2.   

    clientCaps Behavior:Provides information about features supported by Microsoft® Internet Explorer, as well as a way for installing browser components on demand.这是IE新增默认行为(htc很少用),当然利用web行为(就是利用htc方式可以完成大量特殊工作)<HTML XMLNS:IE>
    <HEAD>
    <STYLE>
    @media all {
       IE\:clientCaps {behavior:url(#default#clientCaps)}
    }   
    </STYLE>
    </HEAD><BODY>
    <IE:clientCaps ID="oClientCaps" /><PRE id=oPre></PRE><SCRIPT>
    <!--
    function window.onload()
    {
       sTempStr = "availHeight    = " + oClientCaps.availHeight    + "\n" + 
                  "availWidth     = " + oClientCaps.availWidth     + "\n" + 
                  "bufferDepth    = " + oClientCaps.bufferDepth    + "\n" +
                  "colorDepth     = " + oClientCaps.colorDepth     + "\n" +
                  "connectionType = " + oClientCaps.connectionType + "\n" +
                  "cookieEnabled  = " + oClientCaps.cookieEnabled  + "\n" +  
                  "cpuClass       = " + oClientCaps.cpuClass       + "\n" + 
                  "height         = " + oClientCaps.height         + "\n" + 
                  "javaEnabled    = " + oClientCaps.javaEnabled    + "\n" + 
                  "platform       = " + oClientCaps.platform       + "\n" + 
                  "systemLanguage = " + oClientCaps.systemLanguage + "\n" + 
                  "userLanguage   = " + oClientCaps.userLanguage   + "\n" + 
                  "width          = " + oClientCaps.width          + "\n" ;
      
       oPre.innerText = sTempStr;   
    }
    -->
    </SCRIPT>
    </BODY>
    </HTML>