zoukankan      html  css  js  c++  java
  • js17

    1.动画

      (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

        这十三个属性,前面是一个是自读属性,scrollTop和scrollLeft是即可读也可写

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

      var dd=document.body || documenet.documentElement

      sccrollTop和scrollLeft的最小值是0

      句哦去body的整个文档的高

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

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

      document.body.clientHeight || document.documentElement.clienHeight

      Window   下的两个事件

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

        onresize当窗口发生改变时触发

  • 相关阅读:
    2-7-配置iptables防火墙增加服务器安全
    2-6-搭建无人执守安装服务器
    2-4-搭建FTP服务器实现文件共享
    第一阶段连接
    在mfc中如何显示出系统时间
    关于const
    第三章类图基础
    算法分析的数学基础
    第十二章 派生类
    学好C++该看什么书呢?
  • 原文地址:https://www.cnblogs.com/LXW2002326/p/10038982.html
Copyright © 2011-2022 走看看