Skip to content

Commit 2a67026

Browse files
committed
By Zhao Kun Peng
1 parent 709ae34 commit 2a67026

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

HTML/13.html

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
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>

0 commit comments

Comments
 (0)