此按鈕可切換隱藏式字幕的開啟和關閉。 如果未指定註解參數,則不會顯示。
您可以使用CSS來比較此按鈕的大小、外觀和位置(相對於包含該按鈕的控制欄)。
此按鈕的外觀由下列CSS類選擇器控制:
.s7smartcropvideoviewer .s7closedcaptionbutton
註解按鈕的CSS屬性
頂部 |
從上邊框的位置,包括邊框間距。 |
右側 |
從右邊框定位,包括邊框間距。 |
左側 |
從左邊框的位置,包括邊框間距。 |
底部 |
從底部邊框的位置,包括邊框間距。 |
width |
全螢幕按鈕的寬度。 |
height |
全螢幕按鈕的高度。 |
背景 — 影像 |
指定按鈕狀態的顯示影像。 |
背景位置 |
如果使用CSS精靈,則位於圖稿精靈內。 請參閱 CSS Sprite . |
此按鈕支援 state
和 selected
屬性選取器,可用來將不同外觀套用至不同按鈕狀態。 特別是, selected='true'
對應至字幕可見時的狀態,並 selected='false'
隱藏字幕時使用。
按鈕工具提示可以本地化。 請參閱 用戶介面元素本地化 以取得更多資訊。
設定28 x 28像素的隱藏式字幕按鈕。 它位於上方4個像素和控制條右邊68個像素。 最後,當選取或未選取時,會針對四個不同按鈕狀態中的每一個顯示不同的影像。
.s7smartcropvideoviewer .s7closedcaptionbutton {
position:absolute;
top:4px;
right:68px;
width:28px;
height:28px;
}
.s7smartcropvideoviewer .s7closedcaptionbutton[selected='true'][state='up'] {
background-image:url(images/v2/ClosedCaptionButton_up.png);
}
.s7smartcropvideoviewer .s7closedcaptionbutton[selected='true'][state='over'] {
background-image:url(images/v2/ClosedCaptionButton_over.png);
}
.s7smartcropvideoviewer .s7closedcaptionbutton[selected='true'][state='down'] {
background-image:url(images/v2/ClosedCaptionButton_down.png);
}
.s7smartcropvideoviewer .s7closedcaptionbutton[selected='true'][state='disabled'] {
background-image:url(images/v2/ClosedCaptionButton_disabled.png);
}
.s7smartcropvideoviewer .s7closedcaptionbutton[selected='false'][state='up'] {
background-image:url(images/v2/ClosedCaptionButton_disabled.png);
}
.s7smartcropvideoviewer .s7closedcaptionbutton[selected='false'][state='over'] {
background-image:url(images/v2/ClosedCaptionButton_over.png);
}
.s7smartcropvideoviewer .s7closedcaptionbutton[selected='false'][state='down'] {
background-image:url(images/v2/ClosedCaptionButton_down.png);
}
.s7smartcropvideoviewer .s7closedcaptionbutton[selected='false'][state='disabled'] {
background-image:url(images/v2/ClosedCaptionButton_disabled.png);
}