jquery 和 css 属性

offset()获取标签离左上角的位置,离顶部和左部的距离。离整个屏幕的左上角的距离。

position() 相对于某一个标签的位置。离父标签的距离。离父标签的左上角的距离。

height(), width() 自己的高度 和宽度。不包括边框。
innerHeight() , innerWidth() 自己包括边框的高度和宽度。

posted @ 2016-05-29 10:14  zhoudingzhao  阅读(120)  评论(0编辑  收藏  举报