CSS cursor 和 opacity 屬性

來源:互聯網
上載者:User

標籤:lte   相容   this   sha   filter   point   mil   協助   替代   

cursor :一些不同的游標,當設定該屬性之後,滑鼠指上去會隨著屬性而改變。

舉例:

<span style="cursor:crosshair">十字線</span><br><span style="cursor:default">預設的</span><br><span style="cursor:help">協助</span><br><span style="cursor:move">指示某對象可被移動</span><br><span style="cursor:n-resize">出現左右箭頭</span><br><span style="cursor:pointer">一隻手</span><br><span style="cursor:progress">正在載入</span><br><span style="cursor:text">文本</span><br>

 

opacity:用於設定元素的透明度,元素的不透明度層級描述了透明度層級,當不透明度為 1 時表示完全不透明,當不透明度為 0.5 時表示半透明,當不透明度為 0 時表示完全透明。

opacity: value|inherit;

 

value取值說明:不透明度,從 0.0 (完全透明)到 1.0(完全不透明)。

inherit取值說明opacity屬性的值應該從父元素繼承。

為了相容IE8 以及更早的版本支援替代的 filter 屬性。可以這樣設定:filter:Alpha(opacity=50)。

 

 

<div>This element‘s opacity is 0.5! Note that both the text and the background-color are affected by the opacity level!</div>/** *css設定透明度 */<style> div{    background-color:red;    opacity:0.5;    filter:Alpha(opacity=50); }</style>

 

CSS cursor 和 opacity 屬性

聯繫我們

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