瀏覽器中打開這段代碼亂碼
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="content-Type" content="text/html; charest=utf-8">
<title>文本輸入框,密碼輸入框</title>
</head>
<body>
<form method="post" action="save.php">
姓名:
<input type="text" name="myName">
</br>
密碼:
<input type="password" name="pass">
</form>
</body>
</html>
2016-10-08
charest(charset)=utf-8 ?, ?單詞錯誤
2016-10-09
亂碼的主要原因是文章中的的聲明和文件本身的編碼格式不同,瀏覽器識別錯誤出現(xiàn)亂碼。你可以把文件拷到txt文本下另存,改下編碼格式,在看看。
2016-10-09
<!DOCTYPE HTML>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>文本輸入框、密碼輸入框</title>
</head>
<body>
<form ?method="post" action="save.php">
? ? 姓名:<input type="text" name="myName">?
<br>
密碼:<input type="password" name="pass">?
</form>?
</body>
</html>
我也不知道哪出問題了,但是這段是可以的,可能是復(fù)制出的問題吧!
2016-10-08
代碼沒錯,你要在此亂碼頁面設(shè)置瀏覽器編碼為utf-8。
chrome中依次選 更多工具-》編碼-》utf-8
2016-10-08
我都沒看出來亂