我正在尝试创建一个带有 sprite 图像的导航菜单,我快完成了,但我无法让它们在标题中对齐。有人能告诉我我错过了什么吗?如果单击“事件提要”按钮,您将看到我希望它如何对齐,位于 Logo 容器红色边框的右侧:http://timc-projects.com/VR%20BLOG/index.html
最佳答案
用您的 css 替换此 css 希望对您有所帮助。
<style>
#logoContainer {
border-right: 1px solid #9e0b0f;
float: left;
height: 70px;
margin-top: 12px;
width: 325px;
}
ul#nav-top {
float: left;
height: 70px;
list-style: outside none none;
margin: 0 0 0 -10px;
width: 333px;
}
</style>
关于html - 在 CSS 的标题中对齐 Sprite 图像导航按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34959871/