关于display

当对象的display设置成none的时候是无法得到对象的大小的,只有当它显示成block才可以取height,width的值

原文地址:https://www.cnblogs.com/wallis0922/p/2154125.html