Windows 8 アプリケーションの場合、「Segoe UI Symbol」を使用して AppBar スタイルのボタンを作成できますが、長方形の領域に描画されているため、長方形の背景があります。ホバー中に背景を別の色に設定したいので、この長方形を取り除く必要があります。
以下の質問で指摘されているように、ボタンとスタイルは次のように定義されています。
これを達成する方法を教えてください。
HTML:
<button id="myAppBarIcon" class="normal-size-icon"></button>
CSS:
.normal-size-icon {
margin-top: 400px;
margin-left: 630px;
position: relative;
font-size: 24px;
font-family: 'Segoe UI Symbol';
color: rgb(255, 255, 255);
background: none;
border: none;
}
アップデート:
以下のコードはトリックを行いますが、フォントが正しく配置されていません。それはおそらく、適切に調整されていないためです。下の画像はレイアウトを示しています。
.normal-size-icon {
font-size: 24px;
font-family: 'Segoe UI Symbol';
color: rgb(555, 255, 255);
min-width: 0;
min-height: 0;
border-radius: 50%;
border-style: solid;
padding: 0;
text-align: center;
}