CSS 等高文本字段和按钮

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了CSS 等高文本字段和按钮相关的知识,希望对你有一定的参考价值。

input[type="submit"]::-moz-focus-inner {
    border: 0;
}

input[type="submit"], input[type="text"] {
    line-height:normal !important;
}
html:

<form method="post" id="search" action="">
    <p><input type="text" name="input-1"><input type="submit" value="Submit"></p>
</form>

以上是关于CSS 等高文本字段和按钮的主要内容,如果未能解决你的问题,请参考以下文章

三种纯CSS方法实现等高列

css CSS:等高柱

css实现内容不相同的左右两个div等高

CSS技巧

CSS怎么实现内容不相同的左右两个div等高?

css实现两个div并排等高