zoukankan      html  css  js  c++  java
  • offsetWidth与clientWidth 区别

    offsetWidth       //元素宽度、内边距和边框,不包括外边距

    offsetHeight      //元素高度、内边距和边框,不包括外边距

    clientWidth        //元素宽度、内边距,不包括边框和外边距

    clientHeight       //元素高度、内边距,不包括边框和外边距

    style.width         //元素宽度,不包括内边距、边框和外边距

    style.height       //元素高度,不包括内边距、边框和外边距

    scrollWidth       //元素宽度、内边距和溢出尺寸,不包括边框和外边距,无溢出的情况,与clientWidth相同

    scrollHeigh       //元素高度、内边距和溢出尺寸,不包括边框和外边距,无溢出的情况,与clientHeight相同

  • 相关阅读:
    Transformer详解
    PAT 1012
    PAT 1011
    PAT 1010
    Jordan Lecture Note-3: 梯度投影法
    PAT 1009
    PAT 1008
    Jordan Lecture Note-2: Maximal Margin Classifier
    PAT 1007
    PAT 1006
  • 原文地址:https://www.cnblogs.com/tylz/p/10612869.html
Copyright © 2011-2022 走看看