css3的新屬性

來源:互聯網
上載者:User

標籤:white   wrap   取值   線性   height   透明   bre   duration   傾斜   

1.css的標準陰影li:nth-child(1) shadow{                      box-shadow  :2px           2px          5px      green;------------------------     距離左邊  距離頂邊   模糊度  陰影顏色----------                                                         -2px          -2px       5px        10px      green;---------------------------距離右邊   距離底邊    模糊度     陰影擴充值四條邊都會增加------------- }            內陰影:li:nth-child(2) shadow{                                      box-shadow:inset 2px 2px 5px green;}  2.文本陰影及一些文本樣式;         p{             text-shadow:2px                   2px             6px        black;                      距離左邊的位移  距離右邊位移  陰影模糊度  陰影顏色;             word-break:break-all;整體打 斷;             word-wrap:break-word;文字打斷;             white-space:pre;-------空白換行,會被保留;                               pre-line;------------------換個行被保留,但是行內空格不保留;                               pre-wrap-----------------空白換行都會被保留,與pre相似;                                no wrap------------- -----單行文本顯示,所有文本都在一行顯示,空格與換行都                     不會保留 色彩坡形:                                 線性-漸層background-image:linear-gradient(red,green,blue); background-image:linear-gradient(0deg,red,orange);                                                  ----水平----                                                         --------------90deg  垂直的     45deg/135deg傾斜的-------------background-image:linear-gradient(to right,yellow)   過渡屬性:    .one{                            transition-property:width,height;--------------要過渡的屬性取值;                            transition-duration:1s                            transiton:all 1s;                            }                                               .one {                                transition-delay:1s;-------延遲一秒再過渡;                               transution:width 1s------給寬設定的寬度一秒過渡;                                opacity:0----------透明度0-1;                              }                          .one{                                  transition-timing-function:linear;---------------線性效果,勻速;                                                                              ease;---------------淡入淺出;                                                                              ease-in;-----------------淡入                                                                               ease-out ---------------淡出;                                                                              ease-in-out;---------------淡入淡出;                                                                                                          

css3的新屬性

聯繫我們

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