This time I will bring you html TableThe solution to the problem of too wide overflowing the parent container, the solution to html tableTo the problem of too wide overflowing the parent container What are the precautions? The following is a practical case, let’s take a look.
If the table is wider, it may overflow.
For example, there are two divs, left and right. If the table is in the div on the right, but it is wider, it is likely that the div on the right is not displayed when it is displayed, but is displayed below. At this time, you only need to specify the width of the table:
The code is as follows:
<table style='width:85%'>
I believe you have mastered the method after reading these cases. For more exciting information, please pay attention to the php Chinese websiteOthers related articles!
Related reading:
How to use the cellpadding attribute and cellspacing attribute of HTML
##How to solve the background image of the a tag This problem is not displayed under IE8
How to operate the input box style of type="file"
The above is the detailed content of Solution to html table that is too wide and overflows the parent container. For more information, please follow other related articles on the PHP Chinese website!