Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在 .nav 容器中有一个图像,背景定位属性设置为右,该属性设置在悬停选择器下显示。它工作得几乎完美,除了我想将图像移到更靠近实际导航链接的左侧。当我尝试使用插入边框粗细或绝对定位时,它要么移动导航链接的文本(插入边框粗细),要么当我对背景位置使用绝对定位时,它会变得非常混乱。有什么方法可以移动图像而不影响周围的任何其他东西?HTML5 的新手,我正在使用 dreamweaver CC,但不幸的是,我目前不在我的比赛中。
尝试设置left背景图像的属性。以我的经验,如果你弄乱了容器,那么它就会弄乱其他所有东西。此外,您可能必须修改实际图像以使其看起来正确。
left