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
Release: 2016-06-24 12:15:37
Original
1448 people have browsed it

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>
Copy after login


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


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 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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template