【发布时间】:2016-10-03 18:42:45
【问题描述】:
我意识到这听起来很荒谬,但我无法更改 input type=submit 按钮的字体系列。
我尝试通过 id 和 input[type=submit] 引用它,在 css 中添加一个 !important 标记,并在开发工具中更改它,但没有任何效果。但是,其他 css 属性正在起作用(例如宽度、边距等)。
是否有我在这里忽略的 css 解决方案,或者我应该通过 jquery 更改路径和样式?
代码笔: http://codepen.io/blakeface/pen/mEJWQj?editors=1100
#submit-button {
font-family: cursive;
font-size: 10em;
margin-top: 30px;
}
类似的问题: Input password font -family
【问题讨论】:
-
您的 codepen 示例对我有用。
-
这里工作正常。您使用的是什么操作系统/浏览器?
-
@dippas 好点。我正在使用 Chrome。不过我会尝试使用其他浏览器。