http://coolfire.fetag.org/archives/2004_09/000127.php
挺有意思的文章。没仔细研究现在的firefox 版本是否也有类似问题。
$ua = $_SERVER['HTTP_USER_AGENT'];
$MSIE = (stristr($ua, "MSIE") || stristr($ua, "Internet Explorer"));
$Moz4 = stristr($ua, "Mozilla/4");
$Moz5 = stristr($ua, "Mozilla/5");
if ($MSIE==true) {
?>
} else {
?>
}
?>
Leave a reply