ツールバーの特定のコントロールを左に配置したいとします。私は幾分達成しましたが、下のスクリーンショットからわかるように、それらは重複しています。ここでWinjs:特定のツールバーコントロールを左に配置
が私のHTMLです...
<div class="AudioControls" data-win-control="WinJS.UI.ToolBar">
<!--Top Level Controls-->
<button data-win-control="WinJS.UI.Command"
data-win-options="{
id: 'cmdPrevTrack',
label: 'Previous',
type: 'button',
icon: 'previous',
section: 'primary',
priority: 1
}" class="AudioControlsPosLeft"></button>
<button data-win-control="WinJS.UI.Command"
data-win-options="{
id:'cmdPlay',
label: 'Play',
type: 'button',
icon: 'play',
section: 'primary',
priority: 2
}" class="AudioControlsPosLeft"></button>
<button data-win-control="WinJS.UI.Command"
data-win-options="{
id: 'cmdNextTrack',
label: 'Next',
type: 'button',
icon: 'next',
section: 'primary',
priority: 3
}"></button>
<button data-win-control="WinJS.UI.Command"
data-win-options="{
id: 'cmdChangeVolume',
label: 'Volume',
type: 'button',
icon: 'volume'
}"></button>
<button data-win-control="WinJS.UI.Command"
data-win-options="{
id: 'cmdShuffleTrackLst',
label: 'Shuffle',
type: 'button',
icon: 'shuffle'
}"></button>
<button data-win-control="WinJS.UI.Command"
data-win-options="{
id: 'cmdSettings',
label: 'Settings',
type: 'button',
icon: 'settings'
}"></button>
そして、私のCSS ...
.AudioControls {
position: fixed;
bottom: 0px;
width: 100%;
background-color: black;
color:white;
}
.AudioControlsPosLeft {
position: absolute !important;
left: 5px;
}
任意の助けいただければ幸いです。 ありがとう:D