Css提高——calc函数、过渡

1、calc函数:

 2、过渡

例子 

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>过渡exercise</title>
    <style>
        div {
            width: 300px;
            height: 300px;
            background-color: aqua;
            transition: all 0.5s ease;
        }

        div:hover {

            margin-left: 300px;
            margin-top: 300px;

        }
    </style>
</head>

<body>
    <div></div>
</body>

</html>

相关推荐

  1. 你不知道的CSS函数calc():解锁布局设计的新维度

    2024-03-19 13:34:04       16 阅读
  2. 7.手写call函数

    2024-03-19 13:34:04       39 阅读
  3. CSS height auto 过渡

    2024-03-19 13:34:04       38 阅读
  4. CSS3-——过渡

    2024-03-19 13:34:04       35 阅读

最近更新

  1. TCP协议是安全的吗?

    2024-03-19 13:34:04       18 阅读
  2. 阿里云服务器执行yum,一直下载docker-ce-stable失败

    2024-03-19 13:34:04       19 阅读
  3. 【Python教程】压缩PDF文件大小

    2024-03-19 13:34:04       19 阅读
  4. 通过文章id递归查询所有评论(xml)

    2024-03-19 13:34:04       20 阅读

热门阅读

  1. uniapp html变量 直接输出html

    2024-03-19 13:34:04       21 阅读
  2. 算法学习系列(四十一):Flood Fill算法

    2024-03-19 13:34:04       21 阅读
  3. 常用数据结构与算法—数组

    2024-03-19 13:34:04       21 阅读
  4. 邻接表存储图(c++题解)

    2024-03-19 13:34:04       23 阅读