讓VS2010支援HTML5

來源:互聯網
上載者:User

標籤: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了。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.