( ! ) Warning: include(): http:// wrapper is disabled in the server configuration by allow_url_include=0 in D:\www\up\jQuery\jquery_05.php on line 21 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0000 | 361672 | {main}( ) | ...\jquery_05.php:0 |
( ! ) Warning: include(http://pub.houheaven.com/Nav02/Nav_deep2.htm): failed to open stream: no suitable wrapper could be found in D:\www\up\jQuery\jquery_05.php on line 21 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0000 | 361672 | {main}( ) | ...\jquery_05.php:0 |
( ! ) Warning: include(): Failed opening 'http://pub.houheaven.com/Nav02/Nav_deep2.htm' for inclusion (include_path='.;C:\php\pear') in D:\www\up\jQuery\jquery_05.php on line 21 | ||||
---|---|---|---|---|
Call Stack | ||||
# | Time | Memory | Function | Location |
1 | 0.0000 | 361672 | {main}( ) | ...\jquery_05.php:0 |
.width() 方法设置或返回元素的宽度(不包括内边距、边框或外边距)。
.height() 方法设置或返回元素的高度(不包括内边距、边框或外边距)。
$(window).height() | 获取 window 高度 |
$(document).height() | 获取 document 高度 |
$("body").height() | 获取 body 高度 |
$("element").height() | 获取普通元素的高度 |
$("element").height(500) | 设置普通元素的高度 |
.innerWidth() 方法设置或返回元素的宽度(包括内边距)。
.innerHeight() 方法设置或返回元素的高度(包括内边距)。
.outerWidth() 方法设置或返回元素的宽度(包括内边距和边框)。
.outerHeight() 方法设置或返回元素的高度(包括内边距和边框)。
.outerWidth() 方法设置或返回元素的宽度(包括内边距、边框和外边距)。
.outerHeight() 方法设置或返回元素的高度(包括内边距、边框和外边距)。
注意:点击 body.height() 时对话框显示为 0,这是因为本网页css样式特殊设置: body{ height:auto ;···}
测试段落,从此开始,上下外边距为 25px,上下内边距为 25px。
测试段落,从此开始,上下外边距为 25px,上下内边距为 25px。
<div> CSS:
width:600px; height:100px; margin:25px 0; padding:25px 0;
background:#e0edf5; border:1px solid #666;
[ 后天堂向上 | 好好学习天天向上 ]