var width = $(".nanna").width();
是无效的,不能实时改变
可以写入方法
function xx(){return $(".nanna").width();
}
通过调用方法来获取元素的实时的属性值