//form.html
<html>
<head>
<meta charset="utf-8">
<title>Rookie-Tutorial (runoob.com)</title>
</head>
<body>
<form action="welcome.php" method="post">
Name: <input type="text" name="fname"> ;
Alter: <input type="text" name="age">
<input type="submit" value="Submit">
</form>
</body> ;
</html>
//welcome.php
<?php
header("content-type:text/html;charset=utf-8");
$name =$_POST['fname'];
$age=$_POST['age'] ;
echo $name;
echo $age;
?>
Diese beiden Codes sind im IE, Es kann normal im Google-Browser ausgeführt werden, jedoch nicht im 360-Browser. Warum?
360瀏覽器F12檢查一下,是兼容性問(wèn)題,為360瀏覽器上獨(dú)立寫(xiě)一套能正常顯示的代碼,然后2者比較差異?然后你就知道為什么了,然后你就積累了兼容性的經(jīng)驗(yàn)。