首页  >  问答  >  正文

360浏览器与IE浏览器有何区别???

//form.html

<html>

<head>

<meta charset="utf-8">

<title>菜鸟教程(runoob.com)</title>

</head>

<body>

<form action="welcome.php" method="post">

名字: <input type="text" name="fname">

年龄: <input type="text" name="age">

<input type="submit" value="提交">

</form>

</body>

</html>

//welcome.php

<?php 

header("content-type:text/html;charset=utf-8");

$name=$_POST['fname'];

$age=$_POST['age'] ;

echo $name;

echo  $age; 

?>

这两段代码在IE、google 浏览器中能正常运行,但在360浏览器中不能,是为什么。

刘进乾刘进乾1439 天前2945

全部回复(1)我来回复

  • 灭绝师太

    灭绝师太2020-11-11 09:18:38

    360浏览器F12检查一下,是兼容性问题,为360浏览器上独立写一套能正常显示的代码,然后2者比较差异 然后你就知道为什么了,然后你就积累了兼容性的经验。

    回复
    0
  • 取消回复