图标效果 icon-effect

播放图标覆盖在主视图区域上。 它会在视频暂停或到达视频结尾时显示,并且还取决于iconeffect参数。

播放图标的外观由以下CSS类选择器控制:

.s7smartcropvideoviewer . s7smartcropvideoplayer .s7iconeffect

播放图标的CSS属性

background-image
播放图标显示的图像。
background-position

如果使用CSS sprite,则定位在图稿sprite内。

参见 CSS脚本.

width
播放图标的宽度。
height
播放图标的高度。

图标效果支持 state 属性选择器。 state="play" 在播放过程中暂停视频时使用,并且 state="replay" 当播放头位于流结尾时使用。

示例 section-e8caea0a303c425a8a637c2a47c06355

设置100 x 100像素播放图标。

.s7smartcropvideoviewer .s7smartcropvideoplayer .s7iconeffect {
 width: 100px;
 height: 100px;}
.s7smartcropvideoviewer .s7smartcropvideoplayer .s7iconeffect[state="play"] {
background-image: url(images/playIcon.png);
}
.s7smartcropvideoviewer .s7smartcropvideoplayer .s7iconeffect[state="replay"] {
background-image: url(images/replayIcon.png);
}
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8