- 绑定a.target <==> iframe.name 可以实现导航的功能
- 可以用 a + iframe 实现后台功能
<figure>
<!--
绑定a.target <==> iframe.name
可以用 a + iframe 实现后台功能
-->
<figcaption>
<a href="https://j.map.baidu.com/04/Alqu" target="city">银川市</a>
<a href="https://j.map.baidu.com/79/f" target="city">北京市</a>
<a href="https://j.map.baidu.com/a8/5" target="city">上海市</a>
</figcaption>
<iframe srcdoc="<p style='color:red'>城市地图显示在这里</p>" name="city" width="500" height="500" frameborder="0"></iframe>
</figure>
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号