【发布时间】:2023-03-11 07:20:01
【问题描述】:
如何获取div的高度并存入变量?
.top {
content:url(../images/top480.jpg);
z-index:0;
border-bottom:1px solid #000000;
width:100%;
}
/* The weight is variable, is not fixed*/
我正在尝试这样的事情:
var hou = $(".top").width();
window.alert(hou);
【问题讨论】: