Firefox图像选择bug CSS

时间:2014-02-21 07:33:54

标签: html css firefox

我正在研究项目并添加图像作为相对位置。但在浏览器中,除了Firefox之外,图像工作正常。当我点击图像时,它选择图像。您可以通过访问此链接看到:

访问:http://tinypic.com/r/5e7go1/8

或者你可以查看网站网址:http://cqindia.org/website/我在这里上传了网站。

当您在Firefox中打开此网站并向下滚动到滑块部分时,您可以看到该错误。

主要问题是当我点击背景图片时,我选择图像。

我已经尝试过太多东西:比如 - 绝对位置和改变z-index但没什么用。

此外,我访问了一些堆栈页面,但没有找到答案。

已经使用过这个css代码:

.main_container section img {
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -o-user-select: none;
  user-select: none;
}

由于

1 个答案:

答案 0 :(得分:4)

尝试禁用用户选择该图片:

 -moz-user-select: none;

如果可以,所有浏览器都可以通过以下方式解决:

-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-o-user-select: none;
user-select: none;