社交共享
最近更新: 2024年7月20日
创建对象:
- 开发人员
- 用户
默认情况下,社交共享工具显示在右上角。 它由一个按钮和一个面板组成,当用户单击或点按按钮时,该面板会展开并包含单独的共享工具。
可通过以下方式控制社交共享工具在查看器用户界面中的位置和大小:
.s7interactivevideoviewer .s7socialshare
社交共享工具的 CSS属性
前 | 社交共享工具相对于查看器容器的垂直位置。 |
已离开 | 社交共享工具相对于查看器容器的水平位置。 |
宽度 | 社交共享工具的宽度。 |
高度 | 社交共享工具的高度。 |
示例
设置一个社交共享工具,该工具位于查看器容器顶部的4个像素和右侧的5个像素,大小为28 x 28像素。
.s7interactivevideoviewer .s7socialshare {
top:4px;
right:5px;
width:28px;
height:28px;
}
社交共享工具按钮的外观可通过以下CSS类选择器控制:
.s7interactivevideoviewer .s7socialshare .s7socialbutton
社交共享工具按钮的 CSS属性
背景图像 | 针对给定按钮状态显示的图像。 |
背景位置 |
如果使用CSS sprite,则定位在图稿sprite中。 请参阅 CSS Sprite。 |
此按钮支持
state
属性选择器,可用于将不同的外观应用于不同的按钮状态。.s7interactivevideoviewer .s7socialshare .s7socialbutton[state='up'] {
background-image:url(images/v2/SocialShare_video_dark_up.png);
}
.s7interactivevideoviewer .s7socialshare .s7socialbutton[state='over'] {
background-image:url(images/v2/SocialShare_dark_over.png);
}
.s7interactivevideoviewer .s7socialshare .s7socialbutton[state='down'] {
background-image:url(images/v2/SocialShare_dark_down.png);
}
.s7interactivevideoviewer .s7socialshare .s7socialbutton[state='disabled'] {
background-image:url(images/v2/SocialShare_dark_disabled.png);
}
包含各个社交共享图标的面板的外观可通过以下CSS类选择器进行控制:
.s7interactivevideoviewer .s7socialshare .s7socialsharepanel
社交共享面板的 CSS属性
背景色
面板的背景颜色。
示例
要将面板设置为具有透明颜色,请执行以下操作:
.s7interactivevideoviewer .s7socialshare .s7socialsharepanel {
background-color: transparent;
}
recommendation-more-help
b7426f53-aad9-4c00-83fc-664f30f681e8