@ -moz-document url-prefix()不起作用 [英] @-moz-document url-prefix() not working

查看:70
本文介绍了@ -moz-document url-prefix()不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网页和一个CSS文件.我的问题是我在使用时在CSS文件中

I have a webpage and a CSS file for it.My problem is in the CSS file when I am using

@-moz-document url-prefix()

@-moz-document url-prefix()

在我的计算机上,CSS规则适用,但在另一台计算机上,它不起作用(使用相同版本的Firefox测试),这确实很奇怪. 如果有任何帮助,这是我的确切CSS代码:

On my computer the CSS rules apply but on anothe computer it does not work(tested with same version of Firefox) which is really odd. Here is my exact CSS code if that helps in any way:

@-moz-document url-prefix()
{

  .SelectStyle {
    position:relative;
    top:-17px;
  }

}

.SelectStyle {
float:right;
}

我在这里想念或做错什么了吗?

Am I missing or doing something wrong here?

推荐答案

2018:Firefox对@ -moz-document url-prefix()的支持已删除
万一有人观看,firefoz将于2018年5月28日删除对@ -moz-document url-prefix()的支持.

2018: Firefox support for @-moz-document url-prefix() is being removed
Just in case someone will watch this, firefoz remove the support for @-moz-document url-prefix() in 28 May 2018.

您可以使用以下语法之一:

Instead you can use one of the following syntax:

@media screen and (min--moz-device-pixel-ratio:0) {
   .selector {
      property: value;
   }
 }

_:-moz-tree-row(hover), .selector{
     property: value;
}

这篇关于@ -moz-document url-prefix()不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆