Settings
|
Sign in
|
Sign up
Bar
Post
Home
>
Bar JavaScript
>
View post
Reply the post
|
View all
The author has
3
posts.
JavaScript DOM对象的OffsetWidth和ClientWidth的区别
Floor 1
巨大八爪鱼
11/18/15 21:04
Floor 2
巨大八爪鱼
11/18/15 21:07
jQuery中的.width()和.height()分别等于60px和20px,因为padding是5px,所以这两个值既不包含边框,也不包含padding。
Floor 3
巨大八爪鱼
11/18/15 21:09
CSS2对象的.style.width和.style.height很不靠谱,在这个例子中读取到的都是空字符串。
jQuery的.css("width")读到的值是60px,.css("height")是20px,这个和.width()和.height()结果是一样的。
Content converter:
No conversion
Mainland
Taiwan
Hong Kong
Singapore
Reply the post
Content:
User:
You are currently anonymous.
Captcha:
Unclear? Try another one.