张庆旭

导航

2009年10月27日

如何判断浏览器的版本

摘要: 在浏览器的市场上,主要有ie, firefox ,chrome,opera,safari。在进行页面布局的时候,不同的浏览器对css的解释是不一样的,所以在设计页面的是旧需要判断浏览器的版本,从而实现web application的浏览器兼容//判断浏览器版本function CheckBrowserVersion (){ var Sys = {}; var ua = navigator.user... 阅读全文

posted @ 2009-10-27 16:18 张庆旭 阅读(562) 评论(0) 推荐(0) 编辑

页面接受键盘的回车事件

摘要: 在页面的<html></html>外<script type="text/javascript"> document.onkeydown=Document_OnKeyDown;function Document_OnKeyDown(event){ if(!event){ event=window .event; } var keyCode=(window.nav... 阅读全文

posted @ 2009-10-27 16:02 张庆旭 阅读(266) 评论(0) 推荐(0) 编辑