有以下 html
<style> .aspect-ratio { position: relative; width: 100%; height: 0; padding-bottom: 60%; } .aspect-ratio iframe { position: absolute; width: 100%; height: 100%; left: 0; top: 0; } </style> <a href="javascript:void(0)">暂时不设置目标地址</a> <a href="javascript:;">暂时不设置目标地址</a> <div class="aspect-ratio"> <iframe src="https://funnylog.gitee.io/mysql45/" scrolling="" border="0" frameborder="no" framespacing="0" allowfullscreen="true"> </iframe> </div>
通过鼠标点击复制,粘贴到其他地方,html 中只复制出 div 的内容,理想状态应该原样复制吧
欢迎来到这里!
我们正在构建一个小众社区,大家在这里相互信任,以平等 • 自由 • 奔放的价值观进行分享交流。最终,希望大家能够找到与自己志同道合的伙伴,共同成长。
注册 关于