CSS总结

作者: 苦役亚克 | 来源:发表于2019-07-01 21:33 被阅读0次

CSS:cascading style sheets   层叠样式表

display:

            block:    div    p    h1-h6    ul    ol    dl    pre    addres    form

            inline:    span    a    em    i    strong

            inline-block:    img    input    select    textarea    button

            table:    table

            table-cell:    th    td

            table-caption:    caption

            table-row:    tr

            list-item:    li 


px    em    rem    vh    vw    vmin    vmax    %


*

标签

class

id

div,div

div div

div>div

div+div

div~div

div[type]

div[type=value]

div[type~=value]

div[type=|value]

div[type^=value]

div[type*=value]

div[type&=value]

:link

:visited

:active

:hover

:focus

:first-child

:first-letter

:first-line

:first-of-type

:lang(it)

:last-of-type

:last-child

:nth-child()

:nth-of-type()

:nth-last-child()

:nth-last-of-type()

:only-child

:only-of-type

:empty

:not(div)

::selection

:disabled

:enabled

:checked

::placeholder


width

height


background-image:     url();

background-color:     rgba(255,255,255);

background-repeat:     repeat-x     repeat-y    no-repeat;

background-size:     cover    contain ;

background-position:     top    left    bottom    center;

background-attachment:     scroll    fixed;

background: #00FF00     url(bgimage.gif)  center/50px   no-repeat     fixed;


border-style: dotted    double    dashed    solid;

border-width: ;

border-color: ;

border-radius: ;

border-image: url(border.png)     30     round;


direction:    ltr    rtl   ;

color

line-height:2:2倍             200%会被计算出来

text-indent:    10px;

text-align:     left    right    center;

letter-spacing: 10px;

word-spacing: 10px;

text-decoration: underline    over   line    line-through;

text-transform:    capitalize    uppercase    lowercase;

word-break:     break-all    keep-all;

word-wrap:     break-word;

white-space: nowrap;

overflow:    hidden    auto    scroll;

text-overflow:   ellipsis;


font-size:    10px;

font-family: "weiruanyahei";

font-weight: 400;

font-style:     itatic;

font:     style    weight    size/line-height    family;


border-collapse:collapse;

colspan="2"

rowspan="2"


box-sizing:     content-box    border-box;  


opacity: 0-1;

visibility: hidden;

display: none;


float

clear: both;

BFC

position:relative    absolute    fixed    sticky;

边距合并:外边距,父子,字体:      加边框    加padding     BFC


行内元素居中text-align: center;

块:margin:0 auto;

padding挣开元素

transform+absolute居中

vertical-align: middle;

display: table-cell;

::placeholder

transform: translateX     translateY     translateZ      rotateX    rotateZ     rotateY     scale     skew;


transition: 1s width 1s ;

transition-delay: 1s;

transition-timing-function: cubic-bezier(0.215, -0.340, 0.960, 1.350);


animation-fill-mode: forwards;

animation-direction: reverse;

animation-iteration-count: infinite;

animation-play-state: paused;


display: flex;

flex-direction: row     row-reverse     column     column-reverse;

flex-wrap: no-wrap     wrap     wrap-reverse;

flex-flow: direction     wrap;

justify-content: flex-start     flex-end     center     space-between     space-around;

align-items: flex-start      flex-end     center     stretch     baseline;

align-content: flex-start     flex-end     center     space-between     space-around stretch;


order: -1;

flex-grow: 0;

flex-shrink: 1;

flex-basis: auto;

flex: 0 1 auto;

align-self: flex-start     flex-end     center     stretch     baseline;












相关文章

  • css伪元素

    css 伪元素 详述: 这篇文章是继 css的伪类 与 css 伪类选择器 后的 CSS伪元素总结, 意在总结连贯...

  • css reset 总结

    css reset 的总结

  • CSS学习总结

    学了有一小段时间前端了,今做个CSS的总结! 目录: CSS 简介 CSS 语法 CSS 选择器 CSS 引入方式...

  • CSS hack 原理

    参考文章: CSS hack大全&详解(什么是CSS hack) 要点总结: css hack 原理是:依据不同浏...

  • 2022-04-03

    简单总结一周学的css 2 日常总结CSS选择器列表[https://www.cnblogs.com/zhangh...

  • less总结

    css-less和sass总结

  • 2018-07-20

    CSS知识点总结 一.什么是css? CSS(Cascading Style Sheets)层叠样式表,专注于页面...

  • CSS教程汇总

    CSS揭秘实用技巧总结 不止于 CSS 灵活运用CSS开发技巧 前端基础篇之CSS世界 你未必知道的49个CSS知...

  • CSS总结

    css总结 css(cascading style sheets)层叠样式表 引入方式 行内样式————写在htm...

  • 过渡、动画、转换(2D/3D)、渐变

    零:总结 手动触发-->改变属性 + transition属性说明=css过渡css写好触发->改变属性+ a...

网友评论

      本文标题:CSS总结

      本文链接:https://www.haomeiwen.com/subject/kintcctx.html