I have a page I'm converting from quirks mode to strict mode. I 开发者_JAVA技巧added this:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/DTD/strict.dtd">
All of a sudden all my tables collapsed that use cellpadding and cellspacing. The page looks fine in IE7 but has collapsed in Firefox. Is this expected?
By using strict mode, even if I set cellpadding=10
it will render as 0? (no padding)?
Do I need to convert all the table cells to divs
?
Did you write "cellpadding=10" or "cellpadding=10px" ?
That's not something that should happen generally. Might there be some markup that's getting interpreted differently? Did you try validating the HTML?
精彩评论