DOM:element.offsetWidth
z Mozilla Developer Center, polskiego centrum programistów Mozilli.
UWAGA: Tłumaczenie tej strony nie zostało zakończone.
Może być ona niekompletna lub wymagać korekty.
Chcesz pomóc? | Dokończ tłumaczenie | Sprawdź ortografię | Więcej takich stron...
Spis treści |
[edytuj] offsetWidth
DHTML property that gets the width of an element relative to the layout.
[edytuj] Składnia i wartości
var intElemOffsetWidth = document.getElementById(id_attribute_value).offsetWidth;
intElemOffsetWidth is a variable storing an integer corresponding to the offsetWidth pixel value of the element. offsetWidth is a read-only property.
[edytuj] Opis
Typically, an element's offsetWidth is a measurement which includes the element borders, the element horizontal padding, the element vertical scrollbar (if present, if rendered) and the element CSS width.
[edytuj] Przykład
padding-top
Gentle, individualistic and very loyal, Birman cats fall between Siamese and Persian in character. If you admire cats that are non aggressive, that enjoy being with humans and tend to be on the quiet side, you may well find that Birman cats are just the felines for you.
All Birmans have colorpointed features, dark coloration of the face, ears, legs and tail.
Cat image and text coming from www.best-cat-art.com
padding-bottom
[edytuj] Specyfikacja
offsetWidth is part of the MSIE's DHTML object model. offsetWidth is not part of any W3C specification or technical recommendation.
[edytuj] Uwagi
offsetWidth is a property of the DHTML object model which was first introduced by MSIE. It is sometimes referred as an element physical/graphical dimensions or an element's box width.
