社交分享

社交分享工具預設會顯示在右上角。 它包含按鈕和面板,當使用者點按或點選按鈕時會展開,並包含個別的共用工具。

檢視器使用者介面中社交分享工具的位置和大小由下列項目控制:

.s7smartcropvideoviewer .s7socialshare

社交分享工具的CSS屬性

頂部

社交分享工具相對於檢視器容器的垂直位置。

左側

社交分享工具相對於檢視器容器的水準位置。

width

社交分享工具的寬度。

height

社交分享工具的高度。

範例 — 設定社交分享工具,該工具的大小為28 x 28像素,從頂端放置四個像素,從檢視器容器右側放置五個像素。

.s7smartcropvideoviewer .s7socialshare {
 top:4px;
 right:5px;
 width:28px;
 height:28px;
}

社交分享工具按鈕的外觀由下列CSS類別選取器控制:

.s7smartcropvideoviewer .s7socialshare .s7socialbutton

社交按鈕的CSS屬性

背景 — 影像

針對指定按鈕狀態顯示的影像。

背景位置

如果使用CSS精靈,則位於圖稿精靈內。

請參閱 CSS Sprite .

注意

此按鈕支援 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屬性

背景顏色

面板的背景顏色。

範例 — 設定面板以使用透明顏色:

.s7smartcropvideoviewer .s7socialshare .s7socialsharepanel {
 background-color: transparent;
}

本頁內容