相关疑难解决方法(0)

如何在Firefox 4 +中重置默认按钮样式

在Firefox 3.6中,您可以使用::-moz-focus-inner {border:0;padding:0;margin:0;}删除forms.css添加的默认边距和填充.

如何在Firefox 4中重置此功能?我一直在搜索安装目录中的任何.css文件,这些文件可以为我的按钮添加样式但是找不到ff4的任何内容 - 按钮仍然会获得令人讨厌的1px顶部填充,这将不允许文本与垂直对齐中间.

http://easwee.net/other/FF_problem.gif

编辑:我使用重置样式表,因此无需重置样式.这是一个混乱的浏览器样式表.

css firefox input button

21
推荐指数
1
解决办法
2万
查看次数

如何从 Firefox 中的按钮中删除默认填充?

我在按钮内有一个 span 元素。跨度有一个背景颜色,但我无法让它填充 Firefox 中的按钮,在 Chrome 和 IE 中很好。

我看过两个类似的问题,但他们的答案似乎并没有为我解决这个问题。

这是我的问题的精简版:

div {
    height: 300px;
    width: 300px;
    background-color: red;
}
button {
    padding: 0px;
    margin: 0px;
    color: inherit;
    border: 0px none;
    background-color: blue;
}
span {
    background-color: yellow;
    display: block;
    width: 100%;
}
Run Code Online (Sandbox Code Playgroud)
<div>
    <button><span>span</span></button>
</div>
Run Code Online (Sandbox Code Playgroud)

css firefox

5
推荐指数
1
解决办法
5066
查看次数

标签 统计

css ×2

firefox ×2

button ×1

input ×1