【发布时间】:2012-05-22 06:57:38
【问题描述】:
当我尝试使用 css 添加一些输入字段时
我有问题
我不能为某些输入字段制作多个 css
这是我拥有的字段
<input type="text" name="firstName" />
<input type="text" name="lastName" />
css 是
input
{
background-image:url('images/fieldBG.gif');
background-repeat:repeat-x;
border: 0px solid;
height:25px;
width:235px;
}
我想用这个 css 创建第一个字段 (firstName)
input
{
background-image:url('images/fieldBG.gif');
background-repeat:repeat-x;
border: 0px solid;
height:25px;
width:235px;
}
第二个(姓氏)使用这个 css
input
{
background-image:url('images/fieldBG2222.gif');
background-repeat:repeat-x;
border: 0px solid;
height:25px;
width:125px;
}
请帮忙:-)
【问题讨论】:
-
@Musa -- 这个更容易阅读。 net.tutsplus.com/tutorials/html-css-techniques/…