Firefox 特定的边距? [英] Firefox specific margin?

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

问题描述

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

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

我的问题出在所有浏览器上,即使 IE 也能工作,

My problem is in every browser, even IE works,

但是 firefox 现在在我的 CSS 上失败了...当我滚动它们时,某些链接会向左移动 1px...

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

推荐答案

您的问题可能出在别处,但这里是您仅针对 Firefox 的方法:

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

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

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

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