或者:<Meta http-equiv="Page-Enter" Content="revealTrans(duration=x, transition=y)"> <Meta http-equiv="Page-Exit" Content="revealTrans(duration=x, transition=y)">

這個是頁面被載入和調出時的一些特效。注重:blendTrans是動態濾鏡的一種,產生漸隱效果。另一種動態濾鏡RevealTrans也可以用于頁面進入與退出效果: Duration 表示濾鏡特效的持續時間(單位:秒);Transition 濾鏡類型。表示使用哪種特效,取值為0-23。

9、IE6 (頁面生成器)

用法:<Meta http-equiv="IE6" Content="Generator">

頁面生成器generator,是ie6。

10、Content-Script-Type (腳本相關)

用法:<Meta http-equiv="Content-Script-Type" Content="text/javascript">

注重:這是近來W3C的規范,指明頁面中腳本的類型。

二、NAME變量

name是描述網頁的,對應于Content(網頁內容),以便于搜索引擎機器人查找、分類(目前幾乎所有的搜索引擎都使用網上機器人自動查找meta值來給網頁分類)。

11、Keywords (要害字)

用法:<Meta name="Keywords" Content="要害詞1,要害詞2,要害詞3,要害詞4">

為搜索引擎提供的要害字列表。注重:各要害詞間用英文半角逗號“,”隔開。要害詞數量最好保持在5個以內,要害詞要和頁面內容相關。

12、Description (簡介)

用法:<Meta name="Description" Content="你網頁的簡述">

Description用來告訴搜索引擎你的網站或該頁面的主要內容,描述內容要和頁面內容相關,字數在150個字以內。

13、Robots (機器人向導)

用法:<Meta name="Robots" Content="All|None|Index|Noindex|Follow|Nofollow">

說明:Robots用來告訴搜索機器人哪些頁面需要索引,哪些頁面不需要索引。Content的參數有all、none、index、noindex、follow、nofollow。默認是all。
   
all:文件將被檢索,且頁面上的鏈接可以被查詢;none:文件將不被檢索,且頁面上的鏈接不可以被查詢;(和 "noindex, no follow" 起相同作用);index:文件將被檢索;(讓robot/spider登錄);follow:頁面上的鏈接可以被查詢;noindex:文件將不被檢索,但頁面上的鏈接可以被查詢;(不讓robot/spider登錄);nofollow:文件將不被檢索,頁面上的鏈接可以被查詢。(不讓robot/spider順著此頁的連接往下探找)。

14、Author (作者)

用法:<Meta name="Author" Content="毅衡,5@163.com">

標注網頁的作者或設計組。Content可以是:你或你的設計組的名字或Email。

15、Copyright (版權)

用法:<Meta name="Copyright" Content="本頁版權歸毅衡所有。All Rights Reserved icediary">

標注版權。

16、Generator (編輯器)

用法:<Meta name="Generator" Content="PCDATA|FrontPage|">

編輯器的說明。

17、revisit-after (重訪)

用法:<META name="revisit-after" CONTENT="7 days" >

一般用做引導搜索引擎重新訪問你的站點的時間間隔,一般使用days。

三、META常用舉例:

<META http-equiv=Content-Type content="text/html; charset=big5">
//設定頁面語言為簡體中文
<META content="要害字" name="keywords">
//設定要害字
<META content="內容描述" name="description">
//設定描述
<META http-equiv="Refresh" Content="30">
//設定該頁面30秒自動刷新
<META name="robots" content="index, follow" />
//設定答應搜索引擎可以檢索,頁面上鏈接可以查詢
<META name="googlebot" content="index, follow" />
//針對google的搜索機器人設定答應搜索引擎可以檢索,頁面上鏈接可以查詢
<META name="Author" Content="毅衡">
//頁面作者
<META name="Copyright" Content="All Rights Reserved icediary">
//頁面版權
<META name="revisit-after" CONTENT="1 days" >
//設定回訪為1天

arrow
arrow
    全站熱搜

    EMBA的小眼睛 發表在 痞客邦 留言(0) 人氣()