標籤: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的新屬性