当id="t1"的表格显示的列数大于外部table列数时,外部table宽度等于20的td的宽度会变宽,请问如何解决!
急急急!
回复讨论(解决方案)
table的宽度和高度会随着里面的子容器撑开,overlfow:hidden;都不管用,如果想要在td里面限制宽度,在里面加一个div,在套table
New Document
|
|
|
|
|
|
|
|
fgzgd | &fgzgdfgzgd; | &fgzgdfgzgdfgzgd; | &nfgzgdfgzgdfgzgdbsp; | &fgzgdfgzgdfgzgd; | &nfgzgdfgzgdbsp; | | | | | | | | | | | | | |
html>
Still not working, when the width of the div is set to more than 300, the width of the first column of the outer table will become wider
Do you want it to be adaptive? If you don't want the width to change, then add a width limit to everything. If you want to adapt, then add a percentage to everything. If you don't add anything, it would be weird if it keeps changing. Haha