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.
我试图使这个 CSS 属性的点击工作与可以在此处找到的相同:buysellads.com,如果您点击徽标,当您点击它时,它会向下一点......
我们怎样才能创造它?
谢谢
尝试这样的事情,它可能会成功:
.logo a:active { position: relative; top: 1px; }
如果它不起作用,你可能有一些其他的 CSS 阻止了这种效果。您能否提供您网站的 URL,以便我们查看?
干杯
您必须更改活动的背景位置:
.logo a:active em { background-position: 8px 7px; }
他们的styles.css中的第201-203行