css3 实现 背景图片显示

<!DOCTYPE html>
<html>
<head>
<style>
p{ display: inline-block;
background-color:red;
}
p>i{
display: block;
width:120px;
height:50px;
background-image:url("image/bk.png");
background-position: 0 -210px;

}

</style>
</head>
<body>
<p>
<i> </i>
</p>
</body>
</html>

posted on 2016-04-19 23:51  David1314  阅读(352)  评论(0编辑  收藏  举报

导航