css: override active link style?

前端 未结 3 1177
感情败类
感情败类 2021-01-29 01:22

i have the following selector in my css:

a:active {
  position: relative;
  top: 1px;
}

So every link has this little button-effect when it\'s

3条回答
  •  悲哀的现实
    2021-01-29 01:29

    Try resetting the top property as well.

    a#back-to-top:active  {
        position: fixed !important;
        top: auto !important;
    }
    

提交回复
热议问题