开发者

force column size to smallest possible

I have a table with information in it and an icon in the last column that开发者_StackOverflow中文版 perfoms a function. I was wondering if it were possible to force that column to be as small as possible (i.e. as wide as the icon). Currently it has a fair bit on white space that i cant get rid of. I have tried setting the width tp 1% and 1px. How to i force it smaller?

Thanks


Your table width is set to 100%, no? Try adding another column after your icon column with blank cells and see if that does not take some of the extra width away.


Set width for TD tag as same as width for IMG tag(icon), like this code: <td width="16"><img width="16" ... />

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜