標籤:http os io 檔案 ar 代碼 html htm
一、升級Microsoft Visual Studio 2010到Microsoft Visual Studio 2010 sp1
1.升級方法一這裡直接給傳送門了
Microsoft Visual Studio 2010 Service Pack 1升級檔案: http://www.microsoft.com/downloads/zh-cn/details.aspx?FamilyID=75568aa6-8107-475d-948a-ef22627e57a5
2.升級方法二開啟自己的windows update 系統會自動搜尋VS的升級檔案,升級檔案大概600多MB。
二、升級完畢後開啟vs2010開始配置,在功能表列選擇“工具”→“選項”
[caption id="" align="alignnone" width="472" caption="vs2010工具選項 圖一"] [/caption]
三、選擇文字編輯器html→驗證
[caption id="" align="alignnone" width="190" caption="文字編輯器html驗證 圖二"] [/caption]
四、在右面的下拉式功能表選擇html5或者Xhtml5,然後確定。
[caption id="" align="alignnone" width="449" caption="html5或者Xhtml5 圖三"] [/caption]
此時在建立一個新的html檔案看看開頭第一段的代碼裡是又不是有!DOCTYPE html了?這就證明你的vs2010支援html5了。
除此之外升級sp1之後當你建立一個html檔案之後可以在驗證的目標架構下拉式功能表裡選擇html5或者xhtml5。四。
[caption id="" align="alignnone" width="324" caption="在html檔案中選擇html5 圖四"] [/caption]
這樣你建立的檔案也就支援html5了。