所以我有这个 HTML 例如:
<!DOCTYPE html>
<html>
<head>
</head>
<body>
<div>how are you</div>
<p>whatttt</p>
<div id="main">
<div id="test">
div content
<br>
<table class="table">
<thead> </thead>
<tr>
<th>
some header
</th>
</tr>
<tr>
<td> cell </td>
</tr>
</table>
</div>
</div>
</body>
</html>
所以如果我想用 i 框架加载它但只加载div class="main"
它会是这样的:
<iframe class="test" src="testing.html" onload="$('body>*',this.contentWindow.document).not('#main').hide();"></iframe>
如果我只想显示例如:the div id="test"
or that are in the 或 the table class="table"
that are in the din class="main"
main div 我如何才能更深入地了解该主 div 中的那些 div 呢?
提前谢谢各位!