从 YouTube 视频中删除细黑线

时间:2021-08-01 22:53:15

标签: html css youtube resize responsive

如何从 YouTube 视频中删除这些黑线?

我到处找,不知道如何去除细黑线。

有人知道怎么做吗?

要求我提供更多信息,仅此而已。

你点击播放,那些黑线就在那里,永远不会消失。

这就是我想要做的。

你如何确保那些细黑线永远不会出现?

有没有办法做到这一点?

https://jsfiddle.net/nhmg49vy/

enter image description here

self.root.current = 'FileScreen'

2 个答案:

答案 0 :(得分:1)

我通过将视频大小增加 2 像素并通过将 topleft 调整为 1 像素来居中:

.video-frame {
  position: absolute;
  top: -1px;
  left: -1px;
  width: calc(100% + 2px);
  height: calc(100% + 2px);
}

FIDDLE

答案 1 :(得分:0)

我不知道你从哪里得到“56.25%”。根据 Youtube 文档,它应该是“56.20%”。尝试将 .curtain-ratio-keeper 更改为:

.curtain-ratio-keeper {
  position: relative;
  padding-top: 56.20%;
}

enter image description here