jquery - calculating <col> width in chrome -


has found reliable way calculate width of <col> element in chrome?

i writing jquery plugin need calculate widths of table columns, , using <col> reliable way both , set widths. problem cant read them in chrome.

here fiddle not impossible find out width of 2nd column in chrome:

http://jsfiddle.net/n3yef/4/

my challenge: find width of 2nd column in chrome without having append row table.

edit: crux this:

elements 'display' set 'table-column' or 'table-column-group' not rendered (exactly if had 'display: none'), useful, because may have attributes induce style columns represent.

(from http://www.w3.org/tr/css2/tables.html)

this isn't want, here fiddle calculates column width:

http://jsfiddle.net/jvhuv/1/

as far can tell, <col> elements have no size since not rendered elements. size of column, need measure actual <td> or <th> elements in table.


Comments

Popular posts from this blog

javascript - DIV "hiding" when changing dropdown value -

Does Firefox offer AppleScript support to get URL of windows? -

android - How to install packaged app on Firefox for mobile? -