减小字体 增大字体
] 源码如下----------------------------------------------------------<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"><HTML xmlns:IE><HEAD><TITLE>clientCaps Behavior Sample-www.51windows.Net</TITLE><META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-8859-1"><META NAME="AUTHOR" CONTENT="InetSDK"><META NAME="MS.LOCALE" CONTENT="EN-US"><META NAME="ROBOTS" CONTENT="noindex"><STYLE> @media all { IE\:CLIENTCAPS {behavior:url(#default#clientCaps)}}</STYLE><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></HEAD><BODY onload=window_onload();window__onload();><H1>clientCaps Behavior Sample</H1><IE:CLIENTCAPS ID="oClientCaps" /><PRE id="oPre"></PRE><SCRIPT><!--function window_onload(){ var sVersion = oBody.getComponentVersion ("{89820200-ECBD-11CF-8B85-00AA005B4383}","componentid");myText.innerHTML = "<FONT SIZE=4>You are running Internet Explorer " + sVersion + ".</FONT>";}--></SCRIPT><div STYLE="behavior:url(#default#clientcaps)" ID="oBody"><DIV ID="myText"></DIV></div><A HREF="http://msdn.microsoft.com/workshop/author/behaviors/reference/behaviors/clientcaps.asp?frame=true" target="_blank">http://msdn.microsoft.com/workshop/author/behaviors/reference/behaviors/clientcaps.asp?frame=true</A></BODY></HTML>
[提示:你可先按照下面代码提示修改 上面部分代码,再按运行,此处看到的演示不完全正确]