Determine the Width of a dynamic CSS3 Multicolumn DIV width fixed column-width

后端 未结 4 1517
不知归路
不知归路 2020-12-17 21:36

I have a DIV container filled with a dynamic text. The length of the text can be different. The DIV container has a fixed height but no width.

4条回答
  •  Happy的楠姐
    2020-12-17 21:53

    Here is the syntax to go about:

    var div = document.getElementById(columnWrapper);               
    var width = div.css("width"),
    var height = div.css("height");
    

提交回复
热议问题