Inside the table, how to make these inline tables wrap.
I defined the width of the large table as 700 pixels, embedded each small table 150 width, each row shows four small tables followed by a newline
The code is as follows:
(The result: the table does not wrap, the big table burst)
HTML Code
PHP statement from the database select content
The PHP statement here shows what's being fished out of the database.
PHP statement, loop over this table |
------Solution--------------------
1, in the absence of CSS control, table will not be placed parallel. So your sample code doesn't match the problem description.
2, assuming that you have been control, then 4 table only accounted for 600, there is no more than 700 possible. You should have a change of control.
HTML Code
------Solution--------------------
It is obvious that the landlord did not change the form of line control.
Three methods for reference:
1, swap with div (much easier, but the downside is that you have to redesign your stylesheet)
2, with the upper left floating (the disadvantage is that the content left, can not be centered)
3, with PHP program control: Each fetch four values, fill in 4 tables, re-(Too convenient and beautiful)