|
获得当前IE字体大小 |
|
|
<head> <script> function checkfont(){ switch(document.body.currentStyle.fontSize){ case "16pt": return "最大"; break; case "14pt": return "较大"; break; case "10pt": return "较小"; break; case "9pt": return "最小"; break; default: return "中"; } } </script> </head> <body onclick="alert(checkfont())"> 调整IE菜单字体大小,再点击查看效果 </body>
缺缺 发表于 2004-7-23 [所属栏目: JScript | 返回首页]
|