我无法获得"背景位置"CSS来定位图像的特定部分,我已设置位置并可以加载所有图像,但指定的区域不显示.到目前为止我写的这段代码无济于事:
<head>
<style type="text/css">
ul#links {
list-style: none;
}
ul#links li a{
float: left;
padding: 40px;
background: url('http://static.tumblr.com/wgijwsy/ixYlr91ax/sprite_colored.png') no-repeat;
}
#customlink {
width: 24px;
height: 24px;
background-position: -0px -0px ;
background-repeat: no-repeat;
}
#rss {
width: 24px;
height: 24px;
background-position: -24px -0px;
background-repeat:no-repeat;
}
#facebook {
width: 24px;
height: 24px;
background-position: -0px -24px;
background-repeat:no-repeat;
}
#flickr {
width: 24px;
height: 24px;
background-position: -24px -24px;
background-repeat:no-repeat;
}
#twitter {
width: 24px;
height: 24px;
background-position: -0px -48px;
background-repeat:no-repeat;
}
#linkedin {
width: …Run Code Online (Sandbox Code Playgroud)