CSS精灵图
用精灵图写自己的名字

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>精灵图</title>
<style>
span {
display: inline-block;
}
/* 将相同代码写到一起,节省代码量 */
.s,
.u,
.l,
.i,
.n {
background: url(abcd.jpg) no-repeat;
}
.s {
width: 111px;
height: 111px;
background-position: -256px -420px;
}
.u {
width: 113px;
height: 110px;
background-position: -475px -421px;
}
.l {
margin-left: 50px;
width: 95px;
height: 110px;
background-position: -6px -276px;
}
.i {
width: 61px;
height: 108px;
background-position: -327px -142px;
}
.n {
width: 111px;
height: 111px;
background-position: -256px -276px;
}
</style>
</head>
<body>
<span class="s"></span>
<span class="u"></span>
<span class="l"></span>
<span class="i"></span>
<span class="n"></span>
</body>
</html>