Firefox的具体保证金? [英] Firefox specific margin?

查看:119
本文介绍了Firefox的具体保证金?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在CSS中为Firefox设置特定的边距?我试过-moz-margin:0px;

我的问题是在每个浏览器中,即使是IE浏览器也是如此,

但现在我的CSS的Firefox失败...有一些链接,像1px向左移动,当我滚动...

解决方案

您的问题可能存在于其他地方,但这里仅以Firefox为目标:

  @  -  moz-document url-prefix ){
a {
margin:0;
}
}


How can I set a specific margin for Firefox in CSS? I tried -moz-margin:0px;

My problem is in every browser, even IE works,

but firefox fails at my CSS now... There are certain links that move like 1px to the left when I rollover them...

解决方案

Your problem probably lies elsewhere, but here's how you target Firefox only:

@-moz-document url-prefix() {
    a {
        margin: 0;
    }
}

这篇关于Firefox的具体保证金?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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