伪类:link--visited--hover--focus--active。
例一:
/css/
a:link{
color: blue;
}
a:visited{
color: green;
}
a:hover{
color: red;
}
a:focus{
color:black;
}
a:active{
color: yellow;
}
/html/
click me
例二:
/css/
input:focus{
background: yellow;
}
input...
转载
2019-05-14 16:22:37 ·
231 阅读 ·
0 评论