javascript - Get the width of a DOM element? -


Is there a way to reach the width of a DOM element? Specifically, I am receiving the width of a table cell (TD) that can be in width, depending on the length of the text in that cell length of different length.

Ideally, I will use the jQuery library to look for solutions, but will also work as others.

In addition, I would like to emphasize that the solution should work in IE6 (unfortunately: -p) besides IE6 (i.e. 8) and Firefox. thank you in advanced!

$ (selector) .width () should work fine, but For IE6 and below ensure that the page has been provided in standard mode and not Quirks-mode (hence it follows the W3C box model).

Standard / Strict mode here:


Comments

Popular posts from this blog

c# - ListView onScroll event -

PHP - get image from byte array -

Linux Terminal Problem with Non-Canonical Terminal I/O app -