摘要: /* IE6、IE7、IE8、火狐FF常用的CSS hack汇总:*/#test{ color:red; /* 所有浏览器都支持 */ color:red !important;/* Firefox、IE7支持 */ _color:red; /* IE6支持 */ *color:red; /* IE6、IE7支持 */ *+color:red; /* IE7支持 */ color:red\9; /* IE6、IE7、IE8支持 */ color:red\0; /* IE8支持 */} 阅读全文
posted @ 2011-02-23 22:35 十月八日 阅读(229) 评论(1) 推荐(0) 编辑
摘要: 1 <?php 2 /** 3 * 取得阅读器名称和版本 4 * 5 * @access public 6 * @return string 7 */ 8 function getbrowser() 9 { 10 global $_SERVER; 11 12 $agent= $_SERVER['HTTP_USER_AGENT']; 13 $browser= ''; 14 $browser_ver= ''; 15 16 if (preg_match('/OmniWeb\/(v*)([^\s|;]+)/i', $agent, $ 阅读全文
posted @ 2011-02-23 19:55 十月八日 阅读(1894) 评论(1) 推荐(0) 编辑