You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: entries/width.xml
+1-1
Original file line number
Diff line number
Diff line change
@@ -8,7 +8,7 @@
8
8
</signature>
9
9
<desc>Get the current computed width for the first element in the set of matched elements.</desc>
10
10
<longdesc>
11
-
<p>The difference between <code>.css(width)</code> and <code>.width()</code> is that the latter returns a unit-less pixel value (for example, <code>400</code>) while the former returns a value with units intact (for example, <code>400px</code>). The <code>.width()</code> method is recommended when an element's width needs to be used in a mathematical calculation.</p>
11
+
<p>The difference between <code>.css( "width" )</code> and <code>.width()</code> is that the latter returns a unit-less pixel value (for example, <code>400</code>) while the former returns a value with units intact (for example, <code>400px</code>). The <code>.width()</code> method is recommended when an element's width needs to be used in a mathematical calculation.</p>
12
12
<figure>
13
13
<imgsrc="/resources/0042_04_04.png"/>
14
14
<figcaption>Figure 1 - Illustration of the measured width</figcaption>
0 commit comments