如何使用css在输入文本类型中添加不同的文本框并增加字体,就像facebook中做的那样?
我在一个网站上发现了这个代码,但是它不能工作,请看看你是否可以帮助我,我想在表单中使用圆角框
.tb5 {
background: url(images/rounded.gif) no-repeat top left;
height: 22px;
width: 230px;
}
.tb5a {
border: 0;
width:220px;
margin-top:3px;
}我想使用https://www.facebook.com/注册表单上的圆角框而不是默认的输入框
发布于 2012-12-24 22:48:23
您可以使用CSS设置文本输入的样式:
input[type=text] {
font-size: 2em;
}您还可以更改其他属性,例如边框。
input[type=text] {
font-size: 2em;
border-radius: 0.5em;
}你可以使用check browser support over at caniuse.com。
https://stackoverflow.com/questions/14022708
复制相似问题