Home >Web Front-end >HTML Tutorial >Why can't the table content imported by iframe be displayed_html/css_WEB-ITnose
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>
<tr> <td>ddddd</td> <td>eeeee</td> <td>fffff</td></tr>
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