Question on insert image to a table under Mac IE 5.2+

C

Cylix

I need to using javascript to add some rows on a table,
I get the way to add a row with number of column.
However, I get two problem about the task,

var col = document.createElement('td');
col.setAttribute('colSpan',5);
This does not work for Mac IE5.2

The second one is when I append an image element to the cell,
The cell will expand to about 400px with nothing content.
I have also try to just set the innerHTML with a html code like <img
src=...>,
the same result shown.

Any idea to solve the above two problem?
Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,266
Messages
2,571,075
Members
48,772
Latest member
Backspace Studios

Latest Threads

Top