如何在视频框架中修复毫无意义的空白?

发布于 2025-02-13 01:43:21 字数 1490 浏览 1 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

撕心裂肺的伤痛 2025-02-20 01:43:22

您正在看到一种边缘效果,其中系统正在努力将CSS像素与多个屏幕像素匹配,该屏幕像素在现代显示器上构成了一个CSS像素。

如果将视频的背景与边框相同的着色,它将“填补”小空白。

background-color: rgba(255, 181, 147, 0.814);

You are seeing a sort of edge effect where the system is struggling to match part CSS pixels to the multiple screen pixels that make up one CSS pixel on modern displays.

If you put a background to the video the same coloring as the border it will 'fill up' the little gap.

background-color: rgba(255, 181, 147, 0.814);
老娘不死你永远是小三 2025-02-20 01:43:22

border-width设置为偶数号码,因此,不要以此为代替:

#video_1 {
    /* ... */
    border-radius: 15px;
    border-style: solid;
    border-width: 5px;
    /* ... */
}

使用4px而不是5px::

#video_1 {
    /* ... */
    border-radius: 15px;
    border-style: solid;
    /* like this */
    border-width: 4px;
    /* ... */
}

Set the border-width to an even number, so instead of this:

#video_1 {
    /* ... */
    border-radius: 15px;
    border-style: solid;
    border-width: 5px;
    /* ... */
}

Instead use something like 4px instead of 5px:

#video_1 {
    /* ... */
    border-radius: 15px;
    border-style: solid;
    /* like this */
    border-width: 4px;
    /* ... */
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文