標籤:
cursor:hand 與 cursor:pointer 的效果是一樣,都像手形游標。
但用FireFox瀏覽時才注意到使用cursor:hand在FireFox、chorme裡並被支援。
cursor:hand :IE完全支援。但是在firefox是不支援的,沒有效果。
cursor:pointer :是CSS2.0的標準。所以firefox是支援的,但是IE5.0既之前版本不支援。IE6開始支援。
附:cursor屬性收集
游標類型 CSS
十字准心 cursor: crosshair;
手 cursor: pointer;
cursor: hand;
寫兩個是為了照顧IE5,它只認hand。
等待/沙漏 cursor: wait;
協助 cursor: help;
無法釋放 cursor: no-drop;
文字/編輯 cursor: text;
可移動對象 cursor: move;
向上改變大小(North) cursor: n-resize;
向下改變大小(South) cursor: s-resize;
向右改變大小(East) cursor: e-resize;
向左改變大小(West) cursor: w-resize;
向上右改變大小(North East) cursor: ne-resize;
向上左改變大小(North West) cursor: nw-resize;
向下右改變大小(South East) cursor: se-resize;
向下左改變大小(South West) cursor: sw-resize;
自動 cursor: auto;
禁止 cursor:not-allowed;
處理中 cursor: progress;
系統預設 cursor: default;
使用者自訂(可用動畫) cursor: url(‘ # ‘);
# = 游標檔案地址 (注意檔案格式必須為:.cur 或 .ani)。
相容ie\firefox\chrome的cursor