CSS3

边框

  • border-radius
  • box-shadow
  • border-image

背景

  • background-size
  • background-origin

文本效果

  • text-shadow
  • word-wrap

多列

  • column-count:定义列数
  • column-gap:列之间的宽度
  • column-rule:设置列之间的宽度,样式和颜色

用户界面

  • resize
  • box-sizing
    • content-box:标准盒模型
    • border-box:IE盒模型
  • outline-offset:轮廓框架在 border 边缘外的偏移

2D

  • transformchrome和safari需要前缀-webkit-,IE9加-ms-
    • translate(X,Y):相对原来的位置向X轴偏移Xpx,向Y轴便宜Ypx
    • rotate():以图案中心为旋转点,正值为顺时针旋转,负值逆时针
    • scale(x,y):宽,高各放大为原来的x和y倍,x为负值则左右翻转,y为负值则上下翻转
    • skew()
    • matrix()
  • transform-origin:设置元素的旋转基点

3D

  • rotateX()
  • rotateY()
  • rotateZ()
    在这里插入图片描述
		.xRotate{
            width:  200px;
            height: 200px;
            background-color: plum;
            margin: 0 auto;
            transition: all 5s;
            text-align: center;
            line-height: 200px;
            font-size: 20px;
        }
        .xRotate:hover{
            transform: rotateX(360deg);
        }
        .yRotate{
            width:  200px;
            height: 200px;
            background-color: cornflowerblue;
            margin: 0 auto;
            transition: all 5s;
            text-align: center;
            line-height: 200px;
            font-size: 20px;
        }
        .yRotate:hover{
            transform: rotateY(360deg);
        }
        .zRotate{
            width:  200px;
            height: 200px;
            background-color: chartreuse;
            margin: 0 auto;
            transition: all 5s;
            text-align: center;
            line-height: 200px;
            font-size: 20px;
        }
        .zRotate:hover{
            transform: rotateZ(360deg);
        }
    </style>
</head>
<body>
<div class="xRotate">x轴</div>
<div class="yRotate">y轴</div>
<div class="zRotate">z轴</div>
</body>

动画

  • transition
  • @keyframes
  • animation
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值