If you want to use pictures to support To increase the height of td, then
I tried it, but it doesn’t work. The div on the right still went down.
This is not just (2) (3).
It’s because of your The image is too wide and there is not enough space left, so it will float down.
You can consider setting the height and width of img
You can set the height and width of img
The height of img The width cannot be modified
The height and width of img cannot be modified
<!DOCTYPE HTML><head><title>数据</title><meta characterset="utf-8" /><style type="text/css">#content{ width:7000px; overFlow-x: scroll ; overFlow-y: hidden ; }#content .test1{ width:500px; height:500px; display: inline-block; background: red;}#content .test2{ width:500px; height:500px; display: inline-block; background: blue;}#content .test3{ width:500px; height:500px; float:left; background: #ccc;}</style> </head><body><div id="content"> <div class="test1">testedsafdsfdsa</div> <div class="test2">testedsafd123</div> <div class="test3">testedsaf456</div> <div class="test1">testedsafdsfdsa</div> <div class="test2">testedsafd123</div> <div class="test3">testedsaf456</div> <div class="test1">testedsafdsfdsa</div> <div class="test2">testedsafd123</div> <div class="test3">testedsaf456</div></div></body></html>
I implemented this using xsl, there is no background, and it seems unnecessary to calculate the image size, because the total width of the table is fixed, and the image is too wide and squeezes the td on the left. I just hope it doesn't let td decrease.
Finally solved, td nowrap