jquery Manipulating CSS Dimensions

Source: Internet
Author: User

. Height ()
Gets the current calculated height value of the first element in the element collection, or sets the height value for each matching element.
. Height ()
Gets the current calculated height value of the first element in the matching element collection.
This method does not accept parameters.
$ (window). Height (); Gets the height of the avatar.
$ (document). Height ()
. Height (value)
Sets the height value of each matching element.
Value An integer representing the number of pixels, the default is pixel px.
. Height (function (index,height))
Returns a function for setting the height. The index parameter represents the position of the element in the collection,
The height parameter represents the original altitude, which points to the current element in the element collection.
$ ("div"). One ("click", Function () {
$ (this). Height (30)
})


. Innerheight ()
Used to get the internal height of the current calculation for the first element in the matching collection (including padding but excluding border or setting the internal height of each matching element)
. Innerheight ()
This method does not accept any parameters.
P.innerheight () Gets the height of the P element
. Innerheight (value)
Sets the interior height of the CSS for the matching element.
. innerheight (function)
A function returns the internal height of the set,
$ (this). Innerheight (modheight) sets the height of the current element.
. Innerwidth ()
Used to get the internal width of the current calculation for the first element in the matching collection (including padding but excluding border or setting the internal width of each matching element)
. Innerwidth ()
This method does not accept any parameters.
P.innerwidth () Gets the width of the P element
. Innerwidth (value)
Sets the interior height of the CSS for the matching element.
. innerwidth (function)
A function returns the internal height of the set,
$ (this). Innerwidth (Modwidth) sets the width of the current element.
. Width ()
Gets the current calculated width value of the first element in the element collection, or sets the width value for each matching element.
. Width ()
Gets the current calculated width value of the first element in the matching element collection.
This method does not accept parameters.
$ (window). width (); Gets the width of the avatar.
$ (document). Width ()
Gets the current calculated width value of the first element in the element collection, or sets the width value for each matching element.
. width (value)
Sets the width value for each matching element.
Value An integer representing the number of pixels, the default is pixel px.
. width (function (index,width))
Returns a function that is used to set the width. The index parameter represents the position of the element in the collection,
The width parameter represents the original breadth, which points to the current element in the element collection.
$ ("div"). One ("click", Function () {
$ (this). Width (30)
})
. Outerheight ()
Gets the current calculated height value of the first element in the matching element collection. Includes padding border and partial margin returns null on an empty set;
. Outerheight ([Includemargin])
Includemargin A Boolean value that indicates whether the margin value of the element is included on the computer. Margin (top and bottom).
P.outerheight (true) gets the height value of the P element, including margin.
. Outerheight (value)
Sets the external height of the CSS for each element in the matching collection.
Value: A number that represents the pixel.
. outerheight (function (index,height))
Functions a function that returns a value used to set the external height value.
$ (this). Outerheight (modheight) Gets the height of the current element including.
. Outerwidth ()
Gets the current calculated width value of the first element in the matching element collection. Includes padding border and partial margin returns null on an empty set;
. Outerwidth ([Includemargin])
Includemargin A Boolean value that indicates whether the margin value of the element is included on the computer. Margin (top and bottom).
P.outerheight (True) gets the width value of the P element, including margin.
. Outerwidth (value)
Sets the external width of the CSS for each element in the matching collection.
Value: A number that represents the pixel.
. outerwidth (function (index,height))
Functions a function that returns a value used to set the outer width value.
$ (this). Outerwidth (Modheight) Gets the width of the current element including.

jquery Manipulating CSS Dimensions

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.