我希望嵌入一个Ted谈话到我的网站,但想中心。
iframe在多个div中,所以我在隔离和编码必要的参数时遇到了一些问题。
当前代码:
<div style="max-width:854px"><div style="position:relative;height:0;padding-bottom:56.25%"><iframe src="https://embed.ted.com/talks/derek_sivers_keep_your_goals_to_yourself" width="854" height="480" style="position:absolute;left:0;top:0;width:100%;height:100%" frameborder="0" scrolling="no" allowfullscreen></iframe></div></div>
发布于 2018-06-15 12:03:32
尝试第一个div的样式margin: 15%;。根据需要增加或减少该值
https://stackoverflow.com/questions/50868130
复制相似问题