css3新特性

css3新特性

1、圆角边框

border-radius:5px;

2、弹性盒模型

display: flex;

3、媒体查询

@media (max-width: 480px) {.box: {column-count: 1;}}

4、颜色透明度

color: rgba(255, 0, 0, 0.75);

5、渐变颜色

background:linear-gradient(red, green, blue);

6、盒子阴影

box-shadow:3px 3px 3px rgba(0, 64, 128, 0.3);

7、新增选择器

p:nth-child(n){color: rgba(255, 0, 0, 0.75)}

8、过渡和动画

transition: width 1s linear 2s;

9、盒子的变幻(2D、3D)

  transform: translate(50px,100px);//移动
  transform: rotate();//旋转
  transform: scale();//缩放
  transform: skew();//倾斜

10、文字溢出

 text-overflow:ellipsis;

11、倒影

 box-reflect: below 2px;
  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值