Home >Web Front-end >HTML Tutorial >Solution to html table that is too wide and overflows the parent container

Solution to html table that is too wide and overflows the parent container

php中世界最好的语言
php中世界最好的语言Original
2018-01-27 10:00:072974browse

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=&#39;width:85%&#39;>

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!

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn