且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

为什么TD宽度不工作或不遵循?

更新时间:2023-11-19 13:18:16

I highly believe the answer to this question is such:

The priority of widths that will affect the TD is

  1. Table Width

  2. Parent Element Width (and if none, Viewport)

  3. Element(TD) Width.

Hence if the table width is set, the TD's will ALWAYS adjusted to the width of the table. However, if the width is unset, the "main" width will be the width of the viewport. Unless the CSS code states otherwise, this holds true. And only when the total width of the TD's is smaller than that of the viewport, the elemental width will be taken into account.

Edit

  1. Table width will always override TD width.

  2. Stated TD width will only be followed until it exceeds viewport width, and viewport width will be taken as priority.

上一篇 : :代码中的WCF跟踪不遵循MessageLogging设置下一篇 : 导入外部.jar文件,Android项目

相关阅读

推荐文章