【发布时间】:2015-11-22 00:35:10
【问题描述】:
我对 HTML 和 CSS 非常陌生。
我想在 youtube iframe 的右边放一些文字。
我试过这段代码
.text {
float: right;
}
<iframe width="200" height="100" src="//www.youtube.com/embed/" frameborder="0" allowfullscreen></iframe>
<span class="text">Hello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some textHello This is some text</span>
但这会从新行开始文本。我想从 iframe 的右上角开始文本。 请帮助我如何实现这一目标?
【问题讨论】:
-
欢迎来到stackoverflow ;)
-
谢谢,这是我的第一个问题,我得到了我正在寻找的准确而快速的答案:)
标签: javascript html css iframe