CSS独自の擬似クラスセレクタ
1164 ワード
CSS独自の擬似クラスセレクタを使用することで、ページクリックイベントをより簡単に完了できます。
css擬似クラスセレクタ:静的および静的に分割
静的擬似クラスはハイパーリンクのスタイルにのみ使用できます
静的擬似クラスはハイパーリンクのスタイルにのみ使用できます
動的擬似クラスすべてのラベルに適用されるスタイル
≪インスタンス|Instance|emdw≫
/* */
a:link{
color:red;
}
/* */
a:visited{
color:orange;
}
/* , */
a:hover{
color:green;
}
/* , */
a:active{
color:black;
テキストボックスの例
/*
:
*/
/*
:
:#FF6F3D
:
:#6a6a6a
*/
input:focus{
border:3px solid #FF6F3D;
color:white;
background-color:#6a6a6a;
}
/*
*/
label:hover{
color:blue;
}
/*
*/
label:active{
color:red;
}