Video.js细黑线

时间:2015-03-04 05:19:47

标签: css html5-video

我正在使用优秀的video.js库为我的网站创建自定义HTML5视频播放器。不幸的是,在Safari的播放器右侧出现了一条细黑线。有时,调整浏览器的大小可以解决问题,但我认为这是一个错误。

这里是我改变为玩家皮肤的少数(根据http://designer.videojs.com):

@base-font-size: 10px;
@touch-device-font-size: 15px;

// The main font color controls the color of the text and the icons (font icons)
@main-font-color: #CCCCCC; // e.g. rgb(255, 255, 255) or #ffffff

// The default color of control backgrounds is mostly black but with a little
// bit of blue so it can still be seen on all black video frames, which are
// common.
@control-bg-color: #07141E; // e.g. rgb(255, 255, 255) or #ffffff
@control-bg-alpha: 0.7; // 1.0 = 100% opacity, 0.0 = 0% opacity

// The slider bar color is used for the progress bar and the volume bar
@slider-bar-color: #1A6DBA; // e.g. rgb(255, 255, 255) or #ffffff
// The background of the progress bar and volume bar have a lined pattern that
// is created from a base64 encoded image. You can generate your own pattern at
// http://www.patternify.com/ then replace the value in the quotes with your own
@slider-bar-pattern: ~'';
// The color of the slider background
@slider-background-color: #333333;
@slider-background-alpha: 0.9; // 1.0 = 100% opacity, 0.0 = 0% opacity

// The "Big Play Button" is the play button that shows before the video plays.
// To center it set the align values to center and middle. The typical location
// of the button is the center, but there is trend towards moving it to a corner
// where it gets out of the way of valuable content in the poster image.
@big-play-align: center; // left, center, or right
@big-play-vertical-align: middle; // top, middle, or bottom
// The button colors match the control colors by default but you can customize
// them by replace the variables (@control-bg-color) with your own color values.
@big-play-bg-color: @control-bg-color;
@big-play-bg-alpha: @control-bg-alpha;
// The font size is what makes the big play button, big. All width/height values
// use ems, which are a multiple of the font size.
// If the @base-font-size is 10px, then 3em equals 30px.
@big-play-font-size: 3em;
// Now that font size is set, the following em values will be a multiple of the
// new font size. If @big-play-font-size is 3em (30px), then setting the any of
// the following values to 2em would equal 60px. 2 * font-size
@big-play-margin: 0.5em;
@big-play-width: 3em;
@big-play-height: 2em;
@big-play-border-radius: 0.5em;
@big-play-border-width: 0;
@big-play-border-color: #3b4249;

我不知道为什么会这样。这可能是视频的问题吗?

链接到有问题的网站:http://bluecocoa.com/posts/spaceship-canopy/

问题截图: screenshot of issue

1 个答案:

答案 0 :(得分:0)

我能够解决这个问题。我使用的视频的宽高比并不完全适合玩家。我调整了padding-top的{​​{1}}来修复它。

相关问题