get width when there is no style defined?
Hi all,
Assume you've got a table with dynamic contents and you haven't assigned any style or class name which specifies the width or height of the table. If u try the codes below u'll face the following results:
alert(document.getElementById("theTable").style.he ight);
--> will alert:nothing(blank)
alert(document.getElementById("theTable").currentS tyle.height);
-->will alert:auto
alert(document.getElementById("theTable").style.pi xelHeight);
-->will alert:0
alert(document.getElementById("theTable").currentS tyle.pixelHeight);
-->will alert:undefined
So what shall I do. It doesn't matter if it only works on IE...
|