Getting the height of a div

前端 未结 4 400
别跟我提以往
别跟我提以往 2021-01-03 07:30
test | test | test
4条回答
  •  半阙折子戏
    2021-01-03 07:52

    Using jQuery: that would be the .height() method.

    var span_height = $('#learning_menu').height(),
        div_height = $('#aLM').height();
    

    N.B. it is invalid HTML to place a block-level element (in this case the

    ) inside of an inline element (the ).

提交回复
热议问题