CSS总结

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;






















最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

  • 1.css简介 css注释 /* */ 浏览器私有属性chrome,safari: -webkit-fir...
    萌琦琦de诗扬阅读 1,873评论 0 2
  • 复习完CSS后总结一下,首先看一下CSS的一个体系结构图: 大体上分为这八个部分,参考一下vivijind的css...
    苏敏阅读 3,870评论 0 3
  • 第一部分 HTML&CSS整理答案 1. 什么是HTML5? 答:HTML5是最新的HTML标准。 注意:讲述HT...
    kismetajun阅读 28,403评论 1 45
  • 图片引入标签: 超链接标签: 百度 base标签: base标签可以给页面的链接加上默认的路径,或者默认的打开方式...
    钱钱_e3a6阅读 2,944评论 0 0
  • 01生娃后,做全职妈妈还是做职业女性? 对于绝大多数女性而言,生育都是人生中必经的一个阶段。可是,生完之后呢?带娃...
    小赢小欢喜阅读 5,305评论 1 5

友情链接更多精彩内容