File tree Expand file tree Collapse file tree 1 file changed +26
-0
lines changed
Expand file tree Collapse file tree 1 file changed +26
-0
lines changed Original file line number Diff line number Diff line change 1+ <!DOCTYPE html>
2+ < html lang ="en ">
3+ < head >
4+ < meta charset ="UTF-8 ">
5+ < title > 伪类选择器</ title >
6+ < style >
7+ .box : hover {
8+ color : red;
9+ background : # d29245 ;
10+ height : 200px ;
11+ width : 200px ;
12+ }
13+ /*a:hover{color: red; text-decoration: underline}*/
14+ /*a:before{content: "hello"}*/
15+ /*a:after{content: "world"}*/
16+ .box2 : hover {
17+ color : red;
18+ width : 100px ;}
19+ </ style >
20+ </ head >
21+ < body >
22+ < div class ="box "> dkcgsjchgsdhcg</ div >
23+ < a href ="# "> sdfsdfsdf</ a >
24+ < img class ="box2 " src ="https://timgsa.baidu.com/timg?image&quality=80&size=b9999_10000&sec=1538060833603&di=dae0543fa115b6b3c2567fee50528a4a&imgtype=0&src=http%3A%2F%2Fkibey-echo.b0.upaiyun.com%2Fposter%2F2014%2F09%2F24%2F0ee91e03d993b087.png " alt ="加载失败 ">
25+ </ body >
26+ </ html >
You can’t perform that action at this time.
0 commit comments