“编辑页面”的版本间的差异
来自能源智库
第3行: | 第3行: | ||
<body> | <body> | ||
− | <iframe src="/example/html/demo_iframe.html" | + | <iframe src="/example/html/demo_iframe.html" name="iframe_a"></iframe> |
− | <p> | + | <p><a href="http://www.w3school.com.cn" target="iframe_a">W3School.com.cn</a></p> |
− | <p> | + | |
+ | <p><b>注释:</b>由于链接的目标匹配 iframe 的名称,所以链接会在 iframe 中打开。</p> | ||
</body> | </body> | ||
</html> | </html> |
2016年6月17日 (五) 21:29的版本
<!DOCTYPE html> <html> <body>
<iframe src="/example/html/demo_iframe.html" name="iframe_a"></iframe>
<a href="http://www.w3school.com.cn" target="iframe_a">W3School.com.cn</a>
注释:由于链接的目标匹配 iframe 的名称,所以链接会在 iframe 中打开。
</body> </html>