Meta也很強

來源:互聯網
上載者:User

標籤:

  1. <!--http-equiv 必要屬性-->
  2. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  3. <!--當瀏覽器向伺服器請求頁面時,服務至少會發送一個值對。這將告訴瀏覽器準備接受一個html文檔 content定義文件類型,字元編碼-->

 

  1. <!--http-equiv 常用緩衝設定-->
  2. <meta http-equiv="Pragma" content="no-cache" ><!--禁止瀏覽器從本機快取中調取頁面內容-->
  3. <meta http-equiv="Cache-Control" content="no-cache" >
  4. <meta http-equiv="Expires" content="0" >
  5. <!--清除瀏覽器中的緩衝,這三句合起來用,就可以使你再次進入曾經訪問過的頁面時,ie瀏覽器必須從服務端下載最新的內容,達到重新整理的效果。-- >
  6. <meta Meta http-equiv="Set-Cookie" Content="cookievalue=xxx; expires=Wednesday,21-Oct-98 16:14:21 GMT; path=/" >
  7. <!--禁用緩衝,使得瀏覽器的每次請求都是伺服器動態載入。如果網頁到期,那麼存檔的cookie將被刪除。注意一點時間使用GMT格式或者是0(數字表示多長時間後到期)-- >
  8. <meta http-equiv="Expires" Content="Wed, 26 Feb 1997 08:21:57 GMT" >
  9. <!--指定網頁在緩衝中的到期時間,一旦網頁到期,必須到伺服器上重新調閱-- >

 

  1. <!--http-equiv IE中網頁渲染方式-->
  2. <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" >
  3. <meta http-equiv="X-UA-Compatible" content="IE=6" ><!-- 使用IE6 -->
  4. <meta http-equiv="X-UA-Compatible" content="IE=7" ><!-- 使用IE7 -->
  5. <meta http-equiv="X-UA-Compatible" content="IE=8" ><!-- 使用IE8 -->
  6. <!--X-UA-Compatible是IE8的一個專有<meta>屬性,它告訴IE8採用何種IE版本去渲染網頁,使用X-UA-Compatible標籤強制IE8採用低版本方式渲染-- >

 

  1. <!--http-equiv 頁面實用功能-->
  2. <meta http-equiv="Widow-target" Content="_top" />
  3. <!--強制頁面在當前視窗以獨立頁面顯示,Content選項:_blank、_top、_self、_parent-->
  4. <meta http-equiv="Page-Enter" Content="blendTrans(Duration=0.5)" />
  5. <!--載入/跳轉時特效 而且這效果只有IE核心支援   更多效果請點我...-->

 

  1. <!--SEO最佳化-->
  2. <meta name ="keywords" content="myWord"><!--告訴搜尋引擎你的網頁關鍵詞-- >
  3. <meta name ="description" content="150 word"><!--用自然描述網頁的核心內容,便於搜尋引擎搜尋-- >
  4. <meta name ="author" content="裸奔白菜" ><!--網頁作者-- >
  5. <meta name ="Copyright" Content="本頁著作權歸裸奔白菜所有。All Rights Reserved" ><!--網頁著作權-- >
  6. <meta name ="Generator" Content="Notepad++" ><!--編輯網頁所使用的編輯器-- >
  7. <meta name ="robots" content="none"><!-搜尋引擎索引方式——
    all:檔案將被檢索,且頁面上的連結可以被查詢;
    none:檔案將不被檢索,且頁面上的連結不可以被查詢;
    index:檔案將被檢索;
    follow:頁面上的連結可以被查詢;
    noindex:檔案將不被檢索;
    nofollow:頁面上的連結不可以被查詢-- >
  8. <meta http-equiv="refresh" content="5;url=http://www.cnblogs.com/bangxw" ><!--網頁重新導向,5...秒後跳轉-- >

 

  1. <!--網頁標題的表徵圖-->
  2. <Link href="soim.ico" rel="Shortcut Icon" />
  3. <!--檔案名稱必須是以.ico結尾-->

 

Meta也很強

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在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.