当前位置: 首页 > news >正文

前端 转换笔记

<!DOCTYPE html>
<html>
    <head>
        <meta charset="utf-8" />
        <title>转换</title>
        <style>
            .box{
                /* 盒子摆在body的正中间 */
                position: absolute;
                top:50%;
                left: 50%;
                transform: translate(-50%,-50%);
                width: 300px;
                height: 300px;
                background-color: aqua;
                /* transform: translateX(50%) translateY(-50%); */
                
            }
            .box2{
                width: 200px;
                height: 200px;
                background-color: aquamarine;
                margin: auto;
                /transition: all 2s linear;/* 转换的中心点 */
                /* 方位词:水平方向(left,center,right) 垂直方向(top,center,bottom)
                 */
                transform-origin: 50% 50%;
            }
            /* .box2:hover{ */
                /* scale()缩放 */
                /* transform: scaleX(.5); */
            /* } */
            .box2:hover{
                /* rotate: ():旋转deg度 正数顺时针,负数逆时针;*/
                /* skew():倾斜  deg度*/
                transform: scale(2,.5);
                /* transform: scaleY(.6); */
            }
        </style>
    </head>
    <body>
        <div class="box"></div>
        <div class="box2"></div>
    </body>
</html>

http://www.lryc.cn/news/382764.html

相关文章:

  • 个人开发笔记
  • pdf压缩,pdf压缩在线,pdf文件太大怎么变小
  • Go 如何使用指针灵活操作内存
  • 【面试干货】Java中的++操作符与线程安全性
  • NLP学习与踩坑记录(持续更新版)
  • Java也能做OCR!SpringBoot 整合 Tess4J 实现图片文字识别
  • 微信小程序常用标签及其用法
  • 开发查询订单信息fastGPT智能体工作流 将工作流接入到人工客服系统
  • Flink集群运行模式
  • XSS 安全漏洞介绍及修复方案
  • 基于STM32的智能仓库管理系统
  • LeetCode —— 只出现一次的数字
  • python遍历文件夹中所有图片
  • 速盾:DDOS能打死高防ip吗?
  • 3dsMax怎样让渲染效果更逼真出色?三套低中高参数设置
  • Android的OverlayFS原理与作用
  • 奇点临近:人类与智能时代的未来
  • NAS教程丨铁威马如何登录 SSH终端?
  • 2024-06-24 百度地图的使用及gps定位坐标获取
  • Python二级考试试题②
  • 安装和使用nvm安装Nodejs
  • 非遗!四川省21市非遗大师工作室申报认定条件程序和认定补贴经费支持(管理办法)
  • uni-app系列:uni.navigateTo传值跳转
  • 6.3万美刀BTC的车还能上吗?
  • 在 Vue 3 中设置 `@` 指向根目录的方法汇总
  • 基于 NXP LS1046 +FPGA系列 CPCI 架构轨道交通专用板卡
  • 快速上手 Spring Boot:基础使用详解
  • react学习——08三点运算符
  • 腾讯云OpenCloudOS系统上安装MySQL
  • C++ - 介绍enum的使用