HTML表单提交按钮的字体大小不能更改 [英] Font size of HTML form submit button cannot be changed
本文介绍了HTML表单提交按钮的字体大小不能更改的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何增加提交按钮的字体大小?特别是在铬,它太小,文字看起来萎缩..
body,input {
font- size:30px;
}
我知道有
-webkit-appearance:none;
但会重置很多其他样式。我想保留默认样式,只是使用不同的字体大小。
解决方案我遇到了类似的问题,但是当我把输入元素内联样式,它工作。所以其他一些样式可能导致这个问题。
< input type =submitvalue =Registerstyle = 字体大小:20像素>
How can I increase the submit button font size? In chrome in particular, it's too small and the text looks squished..
body, input {
font-size: 30px;
}
I know there is
-webkit-appearance: none;
but that resets a lot of other styling. I'd like to keep the default styling, just with a different font size.
解决方案
I faced the similar problem, but when i put the style inline in input element, it was working. So some other styling could be causing the the problem.
<input type="submit" value="Register" style = "font-size:20px">
这篇关于HTML表单提交按钮的字体大小不能更改的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文