css3


函數(shù)

calc()

linear-gradient()

radial-gradient()

steps()


hyphens: ?manual | none | auto? ?


display:flex ? 彈性盒子

flex-direction: row | row-reverse | column | column-reverse ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 排列方式

justify-content: flex-start | flex-end | center | space-between | space-around ? ? ? ? ? ?對其方式?

box-sizing: content-box (默認) ?| border-box?

將 box-sizing 設置為 "border-box"。這可令瀏覽器呈現(xiàn)出帶有指定寬度和高度的框,并把邊框和內(nèi)邊距放入框中。

content-box,border和padding不計算入width之內(nèi)

border-box,border和padding計算入width之內(nèi),其實就是怪異模式了~


transform ?2d:

transform:translate( px, px)? ? ? translate(%,%)? ? ? ? ? ? ? ? translateX(n) ? ? translateY(n)

transform:rotate(deg)? ? 繞縱向旋轉(zhuǎn)?

transform:scale(p*width,q*height)? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? scaleX(n)? ? ? ? ? scaleY(n)

transform:skew(deg,deg)? ? 水平傾斜 ,垂直傾斜? ? ? ? ? ? skewX(angle)? ? ? ? skewY(angle)

transform:martrix(scaleX(),skewY(),skewX(),scaleY(),translateX(),translateY()

transform: matrix(a,b,c,d,e,f)

transform-origin( ) ? ? ? ? ? ? ? ? ? 默認 ?(50%, 50%,0) ?即 (center,center ,0) ?| ? (bottom,left) ? | ? ?(px,%) ? ?


transform? 3d

transform:translate3d( px, px,px)? ? ? translate3d(%,%,%)? ? ? ? ? ? ? ? translateX(n)? translateY(n)? translateZ(n)

transform:scale3d( px, px,px)? ? ? scale3d(%,%,%)? ? ? ? ? ? ? ? scaleX(n)? scaleY(n)? scaleZ(n)

transform:rotate3d( px, px,px)? ? ? rotate3d(%,%,%)? ? ? ? ? ? ? ? rotateX(n)? rotateY(n)? rotateZ(n)


transform-style: flat|preserve-3d;? ? ? ? ? ? 嵌套元素是怎樣在三維空間中呈現(xiàn)。

backface-visibility:visible | hidden;? ? ? ? ? 定義元素在不面對屏幕時是否可見。

p


transition: width 1s linear 2s;?

分開寫:

transition-property: width; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?propertiy | all

transition-duration: 1s; ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?默認 0s

transition-timing-function: linear;? ? ? ? ? ? 默認 ease | linear | ease-in | ease-out |ease-in-out | cubic-bezier(n,n,n,n); ? ? ?cubic-bezier可視化編輯: ? http://cubic-bezier.com/

transition-delay: 2s;


transition: width 2s, height 2s, transform 2s;


animation: myfirst 5s linear 2s infinite alternate;

分開寫:

animation-name: myfirst;

animation-duration: 5s;

animation-timing-function: linear; ? ? ? ? ? ? ? ? 同 transition

animation-delay: 2s;

animation-iteration-count: infinite; ? ? ? ? ? ? ? ? ? ? 重復次數(shù) ?默認 ?1

animation-direction: alternate;? ? ? ? ? ? ? ? ? ? ? ? normal|reverse|alternate|alternate-reverse|initial|inherit; ?正常 | 反向 | 來回 | 反向來回?

animation-play-state: running;? ? ? ? ? ? ? ? ? ? ? 默認 running |? paused;


animation-fill-mode:forwards; ? ??

@keyframes myfirst{

? ? ? 0%? {background:red;}

? ? ? 25%? {background:yellow;}

? ? ? 50%? {background:blue;}

? ? ? 100% {background:green;}

}

@keyframes ?kfff{ ? ? ? ?from = 0% ? to = 100%

? ? ? from {}

? ? ? to {}

}


columns : column-width,column-count

column-count

column-width

column-gap


column-rule? 列之間的寬度,樣式和顏色。

column-rule-color

column-rule-style ? ? ?solid | dotted | dashed | double | outer ...

column-rule-width


border-radius,? border-top-left-radius? 。。。

background-image:url(),url() 可以多個背景圖逗號分隔? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? 相應的background-position,background-repeat


linear-gradient(direction, color1, color2,....)

linear-gradient(to top, color1, color2)

linear-gradient(to top left, color1, color2)

linear-gradient(color1, color2)? 默認相當于? linear-gradient(to bottom, color1, color2)? 或 linear-gradient(180deg, color1, color2)

background: linear-gradient(to right, rgba(255,0,0,0), rgba(255,0,0,1)); ? ?/* 透明度 過度 */

linear-gradient(to right, red,orange,yellow,green,blue,indigo,violet);? 多個顏色

?linear-gradient(red 10%, green 85%, blue 90%); ? ? ? ? ? ? ? /* 不均勻分布 ?*/

background: repeating-linear-gradient(red, yellow 10%, green 10%); ? ? ? ?/ ?* 重復 的漸變*/

background: radial-gradient(center, shape, size, start-color, ..., last-color);

background: radial-gradient(red, green, blue); ? ? ? ? ? ? ?

background: radial-gradient(60% 55%, farthest-side,circle,blue,green,yellow,black); ?

shape 默認值為 ellipse


text-shadow:h-shadow v-shadow blur ?color; ? ?-shadow ?

box-shadow:h-shadow v-shadow blur ?spread color; ? 適用于盒子 ? ?橫向偏移 ?縱向 ?模糊半徑 ?擴張半徑 ?顏色

border-radius:50% ? ?盒子

自定義字體

@font-face{

? ? ? font-family: myFirstFont;

? ? ?src: url(sansation_light.woff);

}

div ?{ font-family : myFirstFont; }

最后編輯于
?著作權(quán)歸作者所有,轉(zhuǎn)載或內(nèi)容合作請聯(lián)系作者
平臺聲明:文章內(nèi)容(如有圖片或視頻亦包括在內(nèi))由作者上傳并發(fā)布,文章內(nèi)容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。
  • 序言:七十年代末,一起剝皮案震驚了整個濱河市,隨后出現(xiàn)的幾起案子,更是在濱河造成了極大的恐慌,老刑警劉巖,帶你破解...
    沈念sama閱讀 229,908評論 6 541
  • 序言:濱河連續(xù)發(fā)生了三起死亡事件,死亡現(xiàn)場離奇詭異,居然都是意外死亡,警方通過查閱死者的電腦和手機,發(fā)現(xiàn)死者居然都...
    沈念sama閱讀 99,324評論 3 429
  • 文/潘曉璐 我一進店門,熙熙樓的掌柜王于貴愁眉苦臉地迎上來,“玉大人,你說我怎么就攤上這事。” “怎么了?”我有些...
    開封第一講書人閱讀 178,018評論 0 383
  • 文/不壞的土叔 我叫張陵,是天一觀的道長。 經(jīng)常有香客問我,道長,這世上最難降的妖魔是什么? 我笑而不...
    開封第一講書人閱讀 63,675評論 1 317
  • 正文 為了忘掉前任,我火速辦了婚禮,結(jié)果婚禮上,老公的妹妹穿的比我還像新娘。我一直安慰自己,他們只是感情好,可當我...
    茶點故事閱讀 72,417評論 6 412
  • 文/花漫 我一把揭開白布。 她就那樣靜靜地躺著,像睡著了一般。 火紅的嫁衣襯著肌膚如雪。 梳的紋絲不亂的頭發(fā)上,一...
    開封第一講書人閱讀 55,783評論 1 329
  • 那天,我揣著相機與錄音,去河邊找鬼。 笑死,一個胖子當著我的面吹牛,可吹牛的內(nèi)容都是我干的。 我是一名探鬼主播,決...
    沈念sama閱讀 43,779評論 3 446
  • 文/蒼蘭香墨 我猛地睜開眼,長吁一口氣:“原來是場噩夢啊……” “哼!你這毒婦竟也來了?” 一聲冷哼從身側(cè)響起,我...
    開封第一講書人閱讀 42,960評論 0 290
  • 序言:老撾萬榮一對情侶失蹤,失蹤者是張志新(化名)和其女友劉穎,沒想到半個月后,有當?shù)厝嗽跇淞掷锇l(fā)現(xiàn)了一具尸體,經(jīng)...
    沈念sama閱讀 49,522評論 1 335
  • 正文 獨居荒郊野嶺守林人離奇死亡,尸身上長有42處帶血的膿包…… 初始之章·張勛 以下內(nèi)容為張勛視角 年9月15日...
    茶點故事閱讀 41,267評論 3 358
  • 正文 我和宋清朗相戀三年,在試婚紗的時候發(fā)現(xiàn)自己被綠了。 大學時的朋友給我發(fā)了我未婚夫和他白月光在一起吃飯的照片。...
    茶點故事閱讀 43,471評論 1 374
  • 序言:一個原本活蹦亂跳的男人離奇死亡,死狀恐怖,靈堂內(nèi)的尸體忽然破棺而出,到底是詐尸還是另有隱情,我是刑警寧澤,帶...
    沈念sama閱讀 39,009評論 5 363
  • 正文 年R本政府宣布,位于F島的核電站,受9級特大地震影響,放射性物質(zhì)發(fā)生泄漏。R本人自食惡果不足惜,卻給世界環(huán)境...
    茶點故事閱讀 44,698評論 3 348
  • 文/蒙蒙 一、第九天 我趴在偏房一處隱蔽的房頂上張望。 院中可真熱鬧,春花似錦、人聲如沸。這莊子的主人今日做“春日...
    開封第一講書人閱讀 35,099評論 0 28
  • 文/蒼蘭香墨 我抬頭看了看天上的太陽。三九已至,卻和暖如春,著一層夾襖步出監(jiān)牢的瞬間,已是汗流浹背。 一陣腳步聲響...
    開封第一講書人閱讀 36,386評論 1 294
  • 我被黑心中介騙來泰國打工, 沒想到剛下飛機就差點兒被人妖公主榨干…… 1. 我叫王不留,地道東北人。 一個月前我還...
    沈念sama閱讀 52,204評論 3 398
  • 正文 我出身青樓,卻偏偏與公主長得像,于是被迫代替她去往敵國和親。 傳聞我的和親對象是個殘疾皇子,可洞房花燭夜當晚...
    茶點故事閱讀 48,436評論 2 378

推薦閱讀更多精彩內(nèi)容

  • 1、屬性選擇器:id選擇器 # 通過id 來選擇類名選擇器 . 通過類名來選擇屬性選擇器 ...
    Yuann閱讀 1,652評論 0 7
  • 選擇器 CSS3中新添加了很多選擇器,解決了很多之前需要用javascript才能解決的布局問題。· elemen...
    lovelydong閱讀 489評論 0 2
  • 剛學習了這個案例,然后覺得比較好玩,就練習了一下。然后發(fā)現(xiàn)其實也不難,如果你經(jīng)常使用PS或者Flash的話,應該就...
    aymincoder閱讀 533評論 0 3
  • 邊框box-shadow 也可以在偽元素中添加box-shadow效果: border-image border-...
    進擊的阿群閱讀 448評論 0 1
  • 和小家伙生活久了。 不時被他的童言趣語搞的苦笑不得。 特此記錄。
    小滿李閱讀 129評論 0 0