美文网首页
css3新增特性

css3新增特性

作者: 明天F | 来源:发表于2018-07-29 16:16 被阅读0次

    1, 新增选择器 p:nth-child(n){color:rgba(0,0,0,0.8)}
    2,弹性盒模型 display:flex
    3,多列布局 column-count:5
    4,媒体查询 @media (max-width: 480px) {.box: {column-count: 1;}}
    5,个性化字体 @font-face{font-family: BorderWeb; src:url(BORDERW0.eot);}
    6,圆角 border-radius:8px;
    7,渐变 background:linear-gradient(red, green, blue)
    8,阴影 box-shadow:3px 3px 3px rgba(0, 64, 128, 0.3)
    9,倒影 border-reflect:below 5px;
    10,文字修饰 text-stroke-color:red
    11,文字溢出 text-overflow:ellipsis
    12,背景效果 background-size
    13,边框效果 border-image:url(bt_blue.png) 0 10;
    14,转换
    旋转 transform: rotate(20deg);
    倾斜 transform: skew(150deg, -10deg);
    位移 transform: translate(20px, 20px);
    缩放 transform: scale(.5);
    平滑过渡 transition: all .3s ease-in .1s;
    动画 @keyframes anim-1 {50% {border-radius: 50%;}} animation: anim-1 1s;

    相关文章

      网友评论

          本文标题:css3新增特性

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