CSS樣式:cursor -----定義滑鼠指標

來源:互聯網
上載者:User

標籤:css樣式   cursor   定義滑鼠指標   

定義和用法

cursor 屬性規定要顯示的游標的類型(形狀)。

該屬性定義了滑鼠指標放在一個元素邊界範圍內時所用的游標形狀(不過 CSS2.1 沒有定義由哪個邊界確定這個範圍)。

650) this.width=650;" src="http://s2.51cto.com/wyfs02/M02/84/74/wKiom1eQweGzaMpIAAATuzWOxzU662.png" title="1.png" alt="wKiom1eQweGzaMpIAAATuzWOxzU662.png" />

可能的值:

650) this.width=650;" src="http://s3.51cto.com/wyfs02/M02/84/74/wKioL1eQweHQ9dw0AABl2tjWzwM433.png" style="float:none;" title="2.png" alt="wKioL1eQweHQ9dw0AABl2tjWzwM433.png" />


demo:

<html><head>    <style type="text/css">       span{              line-height: 30px;            }    </style> </head><body>    <p>請把滑鼠移動到單詞上,可以看到滑鼠指標發生變化:</p>    <span style="cursor:auto">        Auto    </span><br />    <span style="cursor:crosshair">        Crosshair    </span><br />    <span style="cursor:default">        Default    </span><br />    <span style="cursor:pointer">        Pointer    </span><br />    <span style="cursor:move">        Move    </span><br />    <span style="cursor:e-resize">        e-resize    </span><br />    <span style="cursor:ne-resize">        ne-resize    </span><br />    <span style="cursor:nw-resize">        nw-resize    </span><br />    <span style="cursor:n-resize">        n-resize    </span><br />    <span style="cursor:se-resize">        se-resize    </span><br />    <span style="cursor:sw-resize">        sw-resize    </span><br />    <span style="cursor:s-resize">        s-resize        </span><br />    <span style="cursor:w-resize">        w-resize    </span><br />    <span style="cursor:text">        text    </span><br />    <span style="cursor:wait">        wait    </span><br />    <span style="cursor:help">        help    </span></body></html>


本文出自 “發酸的牛奶” 部落格,轉載請與作者聯絡!

CSS樣式:cursor -----定義滑鼠指標

聯繫我們

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