答案 0 :(得分:0)
使用position: relative
添加父元素,然后使用position: absolute
上的textarea
将其放置在您想要的位置。
* {
box-sizing: border-box;
font-family: consolas;
font-size: 100%;
margin: 0;
padding: 0;
}
html, body {
width: 100%;
height: 100%;
}
.parent {
position: relative;
}
textarea {
position: absolute;
resize: none;
top: 0; left: 0;
width: 100%;
height: 100%;
}
<div class="parent">
<iframe width="100%" height="100%" src="https://www.youtube.com/embed/HIDDEN?rel=0?version=3&autoplay=1&controls=0&&showinfo=0&loop=1" frameborder="0" allowfullscreen></iframe>
<textarea></textarea>
</div>