查看 http://marckmann.se/ 上的菜单链接“Produkter” 我想在某些元素的下拉菜单右侧添加一个箭头图像。但是由于文本被设计成 block ,所以它不允许我。 有什么办法可以解决这个问题吗?
谢谢 :)!
最佳答案
在您的 CSS 中,为 #dropdown div a
规则添加以下内容:
background: url('http://www.phillipsdepury.com/imgs/nav/arrow_small_left.gif') no-repeat right center;}
padding-right: 20px;
替换您自己的箭头图像。同时将 20px 替换为(图像宽度 + 5)px ...
关于html - block 文本旁边的图像,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12460963/