开发者

In javascript, can I determine the ACTUAL padding of a table cell?

开发者 https://www.devze.com 2023-02-09 08:00 出处:网络
Can I determine the actual padding in effect for a cell? I know about style.leftPadding, for example, but AFAICT that only reflects a padding value that was explictly setwith in-line styling or javas

Can I determine the actual padding in effect for a cell?

I know about style.leftPadding, for example, but AFAICT that only reflects a padding value that was explictly set with in-line styling or javascript. It do开发者_运维知识库es not seem to reflect padding that was applied by style sheets.

I also know about clientWidth and offsetWidth, but I don't think those are useful either.

Thoughts?


you can get the table cell padding(inner) by document.all.youtableid.cellPadding

or you can move through the every cell by dom and get the padding

0

精彩评论

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