zoukankan      html  css  js  c++  java
  • 动画

    (1)       Css样式提供了运动

    过渡的属性transition  从一种情况到另一种情况叫过渡

    Transition:attr  time  linear  delay

    Attr 是变化的属性

    Time 是花费的时间

    Linear 变化的速度

    Delay 是延迟

    复习background:url() no-repeat 50% 50% red;

    Background-image

    Background-repeat

    Background-position

    Background-color

    (2)       Js提供的运动

    元素的client offset scroll三个系列

    clientWidth/clientHeight/clientTop/clientLeft

    offsetWidth/offsetHeight/offsetLeft/offsetTop/offsetParent

    scrollWidth/scrollHeight/scrollTop/scrollLeft

    这十三个属性,前面是一个是只读属性,scrollTopscrollLeft是即可读也可写

    获取浏览器的body属性是有兼容的

    Var dd=document.body||document.documentElement

    scrollTopscrollLeft的最小值是0

    获取body的整个文档的高

    document.body.scrollHeight||document.documentElement.scrollHeight

    获取浏览器一屏幕的高(浏览器的可视区)

    Document.body.clientHeight||document.documentElement.clientHeight

    Window下的两个事件

    onscroll 当滚动条滚动的时候触发

    onresize当窗口发生改变时触发

  • 相关阅读:
    让linux用户隶属于多个组
    ldd 的介绍
    全栈博客开发(三)完善项目并容器化
    C++ 迭代器
    C++ vector类
    C++输入输出流和变量
    C++ vscode搭建windows C++开发环境
    全栈博客开发(二)添加渲染
    C++ string类
    全栈博客开发(一)服务结构
  • 原文地址:https://www.cnblogs.com/yang08/p/10044303.html
Copyright © 2011-2022 走看看