Firefox主播沉没在":活跃"

时间:2014-11-13 23:05:31

标签: html css firefox

面对firefox中的问题。

您可以在此处查看:link

单击并按住文本“Click Me”向下按一个像素。如果您在按住鼠标按钮的同时移开光标并将其释放到空白区域 - 文本“Click Me”将不会出现在一个像素上。点击其他元素或空格后会出现。
Chrome没有这种行为。

包含图片以使其更清晰:
1.点击文字并在空格上释放按钮后 While clicked on text and after button release on empty space
2.闲置和点击其他元素后 On idle and after clicking on other element

操作系统:Windows 8.1
浏览器版本: 33.1

代码:

<a href="#">Click Me</a>
a { 
  position: relative;
}
a:active {
  top: 1px;
}

1 个答案:

答案 0 :(得分:1)

这是Firefox的一个已知特性,你可以找到更多关于它的信息here

<强> JSFiddle

<强> HTML

<div onclick="location.href='#';" class="link">W3C Web server</div>

将CSS更改为此,

.link {
    cursor: pointer;
}

.link:active {
    position: relative;
    top: 1px;
}