文章詳情頁
360瀏覽器與IE瀏覽器有何區(qū)別???
瀏覽:158日期:2022-06-22 11:31:58
問題描述
//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 瀏覽器中能正常運(yùn)行,但在360瀏覽器中不能,是為什么。
問題解答
回答1:360瀏覽器F12檢查一下,是兼容性問題,為360瀏覽器上獨(dú)立寫一套能正常顯示的代碼,然后2者比較差異 然后你就知道為什么了,然后你就積累了兼容性的經(jīng)驗。
相關(guān)文章:
1. PHP單例模式2. angular.js - angular chosen下拉菜單組件 ,編輯參數(shù)不顯示3. angular.js - 怎么用Angularjs 來實現(xiàn)如圖4. vue頁面跳轉(zhuǎn)實現(xiàn)頁面緩存操作5. angular.js - ng-grid 和tabset一起用時,grid width默認(rèn)特別小6. angular.js - angularjs中的$compile怎么理解?7. javascript - imgzoom插件所引發(fā)的bug血案!!??!8. javascript - 使用 vuex-router-sync寄存路由信息,this.$router params 不能賦值?9. javascript - json 雙層嵌套 ,如何遍歷拼接字符串?10. windows下有沒有類似Tmux的工具,想把Ipython嵌入到vim
排行榜

熱門標(biāo)簽