互動色票 interactive-swatches
如果在設定中將互動式資料傳遞給檢視器,互動式色票面板會顯示在視訊內容旁邊。 它由頂端的橫幅組成,可轉譯「按一下即可檢視」等文字、一欄中的一或多個互動色票和兩個捲動按鈕(僅適用於案頭系統)。
在桌上型電腦系統和觸控裝置上,互動式色票會以橫向呈現,並垂直呈現在視訊內容的右側。 在觸控裝置上,會以直向方式顯示在檢視器底部,形成水準排的色票。
下列CSS類別選取器可控制互動式色票面板的位置和方向:
.s7interactivevideoviewer .s7interactiveswatches
互動色票的CSS屬性 css-properties-of-the-interactive-swatches
互動式色票面板的執行階段位置和方向是由上述CSS屬性的組合所定義,如下所示:
- 若要在檢視器底部水準彩現互動色票,請將高度設定為絕對畫素值;將左右設定為0px;將寬度、右上設定為auto。
- 若要在視訊內容右方垂直彩現互動色票,請將寬度設定為絕對畫素;將右上角設定為0px;將高度設定為auto,將左下角設定為auto。
可以搭配此樣式使用CSS標籤,以最適化地放置互動式色票面板。
範例 example
若要設定互動式色票面板,在橫向觸控裝置上,在檢視器底部水準彩現。 此外,若要在所有其他情況下垂直顯示在視訊內容的右側,請執行下列動作:
.s7interactivevideoviewer.s7touchinput.s7device_landscape .s7interactiveswatches,
.s7interactivevideoviewer.s7mouseinput .s7interactiveswatches {
width:120px;
height:auto;
right:0px;
top:0px;
left:auto;
bottom:auto;
}
.s7interactivevideoviewer.s7touchinput.s7device_portrait .s7interactiveswatches {
width:auto;
height:136px;
right:auto;
top:auto;
left:0px;
bottom:0px;
}
橫幅的大小和位置由互動式色票元件根據其他套用CSS的樣式來管理,且無法明確設定。
下列CSS類別選擇器會控制橫幅面板的外觀:
.s7interactivevideoviewer .s7interactiveswatches .s7banner
橫幅面板的CSS屬性 css-properties-of-the-banner-panel
橫幅工具提示可以本地化。 另請參閱 使用者介面元素的本地化 以取得詳細資訊。
範例 section-e8caea0a303c425a8a637c2a47c06355
若要設定具有深灰色背景、淺灰色雙畫素邊框和白色文字水準置中的橫幅:
.s7interactivevideoviewer .s7interactiveswatches .s7banner {
background-color: #222222;
border-bottom: 2px solid #444444;
color: #ffffff;
text-align: center;
}
下列CSS類別選取器會控制色票的外觀:
.s7interactivevideoviewer .s7interactiveswatches .s7swatches
色票區域的CSS屬性 css-properties-of-the-swatches-area
範例 section-9cadd62a09fd44a280f55ff42437e416
若要設定具有深灰色背景的色票區域:
.s7interactivevideoviewer .s7interactiveswatches .s7swatches {
background-color: #222222;
}
下列CSS類別選取器會控制色票縮圖之間的間距:
.s7interactivevideoviewer .s7interactiveswatches .s7swatches .s7thumbcell
色票縮圖間距的CSS屬性 css-properties-of-the-swatches-thumbnail-spacing
範例 section-39fb270b7e494a9d99e6e8f6890ec53c
若要將垂直間距設定為10畫素:
.s7interactivevideoviewer .s7interactiveswatches .s7swatches .s7thumbcell {
margin: 5px;
}
下列CSS類別選取器可控制個別縮圖的外觀:
.s7interactivevideoviewer .s7interactiveswatches .s7swatches .s7thumb
個別縮圖外觀的CSS屬性 css-properties-of-the-appearance-of-individual-thumbnails
state
屬性選取器,可用來將不同的外觀元素套用至不同的縮圖狀態。 尤其是, state="selected"
對應於目前所選影像的縮圖; state="default"
對應至其餘的縮圖; state="over"
用於滑鼠游標暫留時。範例 section-69fec189ffaa440b97b6b846c320b75b
若要設定100 x 75畫素的縮圖:
.s7interactivevideoviewer .s7interactiveswatches .s7swatches .s7thumb {
width:100px;
height:75px;
}
下列CSS類別選取器會控制縮圖示籤的外觀:
.s7interactivevideoviewer .s7interactiveswatches .s7swatches .s7label
縮圖示籤外觀的CSS屬性 css-properties-of-the-appearance-of-the-thumbnail-label
範例 section-eb141eb6c1154183baa69796edb90536
若要設定標籤以使用左對齊、白色、12畫素、Helvetica®字型和底部框線:
.s7interactivevideoviewer .s7interactiveswatches .s7swatches .s7label {
border-bottom: 1px solid #e9e9e9;
text-align: left;
color: #ffffff;
font-family: Helvetica,sans-serif;
font-size: 12px;
}
下列CSS類別選取器可控制向上和向下捲動按鈕的外觀:
.s7interactivevideoviewer .s7interactiveswatches .s7scrollupbutton
.s7interactivevideoviewer .s7interactiveswatches .s7scrolldownbutton
無法使用CSS來定位捲動按鈕 top
, left
, bottom
、和 right
屬性;相反地,檢視器邏輯會自動將其定位。
上下捲動按鈕外觀的CSS屬性 css-properties-of-the-appearance-of-the-up-and-down-scroll-buttons
state
屬性選取器,可用來將不同的外觀元素套用至按鈕狀態: 」 up
「, 」 down
「, 」 over
「和」 disabled
「。按鈕工具提示可以本地化。 另請參閱 使用者介面元素的本地化 以取得詳細資訊。
範例 section-e6ce4fa084b84288bc7583342b2c510c
若要設定向上捲動按鈕(60 x 36畫素),請針對每個狀態使用不同的圖稿,並從元件的Sprite影像中取得該圖稿:
.s7interactivevideoviewer .s7interactiveswatches .s7scrollupbutton {
background-size: 120px;
width: 60px;
height: 36px;
}
.s7interactivevideoviewer .s7interactiveswatches .s7scrollupbutton[state] {
background-image: url(images/v2/InteractiveSwatches_light_sprite.png);
}
.s7interactivevideoviewer .s7interactiveswatches .s7scrollupbutton[state='up'] { background-position: -60px -684px; }
.s7interactivevideoviewer .s7interactiveswatches .s7scrollupbutton[state='over'] { background-position: -0px -684px; }
.s7interactivevideoviewer .s7interactiveswatches .s7scrollupbutton[state='down'] { background-position: -60px -648px; }
.s7interactivevideoviewer .s7interactiveswatches .s7scrollupbutton[state='disabled'] { background-position: -0px -648px; }