前端学习记录6

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title></title>
<style>
#camera {
width: 24px;
height: 24px;
border: 1px solid;
margin: 100px auto 0;
background: url("https://dss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/searchbox/nicon-2x-6258e1cf13.png ") no-repeat;
background-size: 24px 96px;
background-position: 0 -48px;
}
#camera:hover{
background-position: 0 -72px;
}


</style>
</head>
<body>
<div id="camera"></div>

</body>
</html>
上一篇:测试环境安装配置obproxy(社区版)


下一篇:position 属性的常用的5种取值(转载)