.height()
		  獲取元素集合中的第一個元素的當前計算高度值,或設(shè)置每一個匹配元素的高度值。
		  .height()
			    獲取匹配元素集合中的第一個元素的當前計算高度值。
			    這個方法不接受參數(shù)。
			    $(window).height();  獲取頭像的高度。
			    $(document).height()
		  .height(value)
			    設(shè)置每一個匹配元素的高度值。
			    value 一個整數(shù)代表的像素數(shù),默認為像素px。
		    .height(function(index,height))
			    返回用于設(shè)置高度的一個函數(shù)。index 參數(shù)表示元素在集合中的位置,
			    height 參數(shù)表示原來的高度,this 指向元素集合中的當前元素。
			    $("div").one("click",function(){ 
				      $(this).height(30)
			    })
	.innerHeight()
		  用于獲得匹配集合中第一個元素的當前計算的內(nèi)部高度(包括padding 但不包括border  或設(shè)置每一個匹配元素的內(nèi)部高度)
		  .innerHeight()
			    這個方法不接受任何參數(shù)。
			    p.innerHeight()  獲取p元素的高度
		  .innerHeight(value)
			    為匹配元素設(shè)置CSS 內(nèi)部高度。
		  .innerHeight(function)
			    一個函數(shù)用返回設(shè)置內(nèi)部高度,
			    $( this ).innerHeight( modHeight )   設(shè)置當前元素的高度。
	.innerWidth()
		  用于獲得匹配集合中第一個元素的當前計算的內(nèi)部寬度(包括padding 但不包括border  或設(shè)置每一個匹配元素的內(nèi)部寬度)
  .innerWidth()
			    這個方法不接受任何參數(shù)。
			    p.innerWidth()  獲取p元素的寬度
  .innerWidth(value)
			    為匹配元素設(shè)置css 內(nèi)部高度。
  .innerWidth(function)
			    一個函數(shù)用返回設(shè)置內(nèi)部高度,
			    $( this ).innerWidth( modWidth)   設(shè)置當前元素的寬度。
	.width()
		  獲取元素集合中的第一個元素的當前計算寬度值,或設(shè)置每一個匹配元素的寬度值。
		  .width()
			    獲取匹配元素集合中的第一個元素的當前計算寬度值。
			    這個方法不接受參數(shù)。
			  $(window).width();  獲取頭像的寬度。
			  $(document).width()
		  獲取元素集合中的第一個元素的當前計算寬度值,或設(shè)置每一個匹配元素的寬度值。
		  .width(value)
			    設(shè)置每一個匹配元素的寬度值。
			    value 一個整數(shù)代表的像素數(shù),默認為像素px。
		  .width(function(index,width))
			    返回用于設(shè)置寬度的一個函數(shù)。index 參數(shù)表示元素在集合中的位置,
			    width 參數(shù)表示原來的寬度,this 指向元素集合中的當前元素。
			     $("div").one("click",function(){ 
				        $(this).width(30)
			      })
	.outerHeight()
		  獲取匹配元素集合中第一個元素的當前計算高度值。包括padding border 和部分margin   在空集合上返回null;
		  .outerHeight([includeMargin])
			    includeMargin  一個布爾值,表明是否在計算機時包含元素的margin 值。margin (top 和 bottom)。
				    p.outerHeight( true )  獲取p 元素的高度值,包括margin。
  .outerHeight(value)
			    為匹配集合中的每個元素設(shè)置css 外部高度。
			    value : 一個表示像素的數(shù)字。
		  .outerHeight(function(index,height))
			    function 一個函數(shù),返回值用來設(shè)置外部高度值。
			    $( this ).outerHeight( modHeight )  獲取當前元素的高度包括。
	.outerWidth()
		  獲取匹配元素集合中第一個元素的當前計算寬度值。包括padding border 和部分margin   在空集合上返回null;
		  .outerWidth([includeMargin])
			    includeMargin  一個布爾值,表明是否在計算機時包含元素的margin 值。margin (top 和 bottom)。
				  p.outerHeight( true )  獲取p 元素的寬度值,包括margin。
		  .outerWidth(value)
			    為匹配集合中的每個元素設(shè)置css 外部寬度。
			    value : 一個表示像素的數(shù)字。
  .outerWidth(function(index,height))
			    function 一個函數(shù),返回值用來設(shè)置外部寬度值。
			    $( this ).outerWidth( modHeight )  獲取當前元素的寬度包括。
新聞熱點
疑難解答