在CSS中设置文本字段的高度 [英] Setting height of text field in CSS

查看:181
本文介绍了在CSS中设置文本字段的高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对不起,这个问题,但我似乎找不到任何地方的答案。
我有css代码,应该设置我的文本框的高度。我使用VS2010 express为windows phone,编码在html / CSS / Javascript(c#)。

Sorry for this question but I cant seem to find an answer anywhere. I have css code that should set the height of my textbox. I am using VS2010 express for windows phone, coding in html/CSS/Javascript(c#).

这是我的代码(html) / p>

this is my code(html)

<input class="heighttext" type="text" id="name">

这是我的小CSS代码

.heighttext{
height:30px
}

我可以设置任何我喜欢的高度,但文本框将保持不变!

I can set that height anything i like, but the textbox will stay the same! please help, or at least send me a link that can!

推荐答案

尝试使用
请帮助或至少向我发送一个链接。 padding
line-height -

input[type="text"]{ padding: 20px 10px; line-height: 28px; }

这篇关于在CSS中设置文本字段的高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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