【发布时间】:2017-12-20 09:27:14
【问题描述】:
我有以下引导代码:
<section>
<div class="container-fluid">
<div class="row">
<video>
...source...
</video>
<button>Play</button>
</div>
</div>
</section>
该部分的高度设置为 560 像素。 video 标签有一个 height: auto 和一个 width: 100%。如何添加一个播放暂停按钮,无论屏幕大小如何,它都始终保持在可视视频区域的同一位置?
【问题讨论】:
-
使用以 % 为单位的绝对定位。
标签: html css twitter-bootstrap