0

Windows 8.1 用の winJs 2.0 の新しいナビゲーション バー コントロールは素晴らしくシンプルです。

しかし、彼らはどのようにして Windows 8 の天気予報アプリ navbar を開発したのでしょうか? 小さな丸いボタンの代わりに、素敵な大きな四角いボタンを意味しますか?

私が見つけた唯一の方法は、appbar を使用し、AppBarCommands を使用せず (それらの形状を変更する方法が見つからないため)、div のみを使用し、すべてのスタイリングを手動で行うことです。

それが唯一の解決策ですか、それとも円を二乗することは可能ですか?

4

1 に答える 1

0

これらのクラスを変更すると、AppBarCommand のスタイルが完全に変更される可能性があります。

CSS class           Description
win-command         Styles the entire AppBarCommand.
win-commandicon     Styles the icon box for the AppBarCommand.
win-commandimage    Styles the image for the AppBarCommand.
win-commandring     Styles the icon ring for the AppBarCommand.
win-label           Styles the label for the AppBarCommand.

たとえば、円を二乗するには:

.win-appbar .win-commandring
{
    border-radius: 0;
}

.win-appbar:hover .win-commandring
{
    border-radius: 0;
}

すべてのデフォルトの動作を変更するのは大変な仕事ですが、それは可能です。

主なスタイルの例については、これをご覧ください: http://msdn.microsoft.com/en-us/library/windows/apps/jj839733.aspx

于 2013-10-21T12:49:29.460 に答える