默认情况下,社交共享工具显示在右上角。 它由一个按钮和一个面板组成,当用户单击或点按按钮时,该面板会展开并包含单独的共享工具。
社交共享工具在查看器用户界面中的位置和大小由以下内容控制:
.s7smartcropvideoviewer .s7socialshare
社交共享工具的CSS属性
顶端 |
社交共享工具相对于查看器容器的垂直位置。 |
左侧 |
社交共享工具相对于查看器容器的水平位置。 |
width |
社交共享工具的宽度。 |
height |
社交共享工具的高度。 |
示例 — 设置一个社交共享工具,该工具位于查看器容器顶部的4个像素和右侧的5个像素处,大小为28 x 28像素。
.s7smartcropvideoviewer .s7socialshare {
top:4px;
right:5px;
width:28px;
height:28px;
}
社交共享工具按钮的外观由以下CSS类选择器控制:
.s7smartcropvideoviewer .s7socialshare .s7socialbutton
社交按钮的CSS属性
background-image |
针对给定按钮状态显示的图像。 |
background-position |
如果使用CSS sprite,则定位在图稿sprite内。 参见 CSS脚本 . |
此按钮支持 state
属性选择器,可用于将不同的外观应用于不同的按钮状态。
可对按钮工具提示进行本地化。 参见 用户界面元素的本地化 了解更多信息。
示例 — 设置社交共享工具按钮,该按钮为四种不同的按钮状态中的每种状态显示不同的图像。
.s7smartcropvideoviewer .s7socialshare .s7socialbutton[state='up'] {
background-image:url(images/v2/SocialShare_video_dark_up.png);
}
.s7smartcropvideoviewer .s7socialshare .s7socialbutton[state='over'] {
background-image:url(images/v2/SocialShare_dark_over.png);
}
.s7smartcropvideoviewer .s7socialshare .s7socialbutton[state='down'] {
background-image:url(images/v2/SocialShare_dark_down.png);
}
.s7smartcropvideoviewer .s7socialshare .s7socialbutton[state='disabled'] {
background-image:url(images/v2/SocialShare_dark_disabled.png);
}
包含各个社交共享图标的面板的外观由以下CSS类选择器控制:
.s7smartcropvideoviewer .s7socialshare .s7socialsharepanel
社交共享面板的CSS属性
background-color |
面板的背景颜色。 |
示例 — 将面板设置为具有透明颜色:
.s7smartcropvideoviewer .s7socialshare .s7socialsharepanel {
background-color: transparent;
}