Home >Web Front-end >HTML Tutorial >Why can't the table content imported by iframe be displayed_html/css_WEB-ITnose

Why can't the table content imported by iframe be displayed_html/css_WEB-ITnose

WBOY
WBOYOriginal
2016-06-24 12:15:371443browse

The part introduced by iframe is always displayed first, and then the table is displayed, but cannot be displayed inside the table. Why?


Home page:

<table border="1">    <tr>        <th>aaaaa</th>        <th>bbbbb</th>        <th>ccccc</th>    </tr>    <iframe style="border:none;" width="100%" src="in.html">    </iframe></table>


in.html:
<tr>    <td>ddddd</td>    <td>eeeee</td>    <td>fffff</td></tr>


Reply to discussion (solution)

The table table must wait until the contents of the entire table tag are parsed and loaded. presented to the interface.

Is there any other way to achieve it, so that part of the table a34de1251f0d9fe1e645927f19a896e8 refers to another html file?

1. Place the IFRAME outside the table (below) and use CSS to make the seam;
2. Use synchronous AJAX to retrieve the relevant data from another HTML and create one together with other data Complete table

The two methods are related by OR, not AND, haha

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