【发布时间】:2015-09-18 18:21:37
【问题描述】:
我无法让背景图像显示在某些文本的右侧。
“右箭头”背景图像精灵需要位于“下一个”一词的右侧。
上一个链接的图像背景的精灵很好。这只是我无法弄清楚的下一个链接。
这是我的 CSS
div#maincontentcontainer div#inner-page-content div.entry-content div.post-nav-previous {
background: url('/wp-content/themes/investorcom-2015/images/post-nav-arrows.png') no-repeat left top;
background-position: 0 0;
float: left;
font-size: 0.8em;
line-height: 1.4em;
padding-left: 20px;
}
div#maincontentcontainer div#inner-page-content div.entry-content div.post-nav-next {
background: url('/wp-content/themes/investorcom-2015/images/post-nav-arrows.png') no-repeat right top;
background-position: 0 -15px;
float: right;
font-size: 0.8em;
padding-right: 20px;
}
【问题讨论】:
-
你为什么把你的网站隐藏在 URL 缩短器后面?
标签: css background-image sprite css-position