有的同學問,為啥我的網頁出現了繁體字呢?
我的神啊,這是網頁亂碼了呀????
加下頁面這一段代碼。
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="WebForm1.aspx.cs" Inherits="Lesson8.WebForm1" %> <!DOCTYPE html> <html xmlns="http://www.w3.org/1999/xhtml"> <head runat="server"> <!--加下面這一段來給網頁編碼,如果utf-8不行,就用gb2312--> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <title></title> <style> input[type=text], textarea { border-radius: 3px; border: 1px solid red; height: 30px; } </style> </head> <body> <form id="form1" runat="server"> <input type="text" /> </form> </body> </html>