|
主题: 怎样用CSS规范表单?
|
 lonita
职务:普通成员
等级:1
金币:0.0
发贴:18
注册:2004/4/20 18:59:16
|
#12004/4/24 19:52:26
建了一个登陆表单: <input type="text" name="ID"> <input type="password" name="Password"> <input name="Submit" type="submit" value="登陆">
用CSS中的input样式规范了ID和Password的宽度和高度。可是“登陆”按钮的宽度和高度也随之改变了,怎样可以使按钮的宽和高不变化?谢谢
|
 缺缺
职务:管理员
等级:8
金币:41.0
发贴:9620
注册:2004/1/14 19:14:47
|
#22004/4/24 21:33:36
<style> .c {
} </style> <input type="text" name="ID" class="c"> <input type="password" name="Password" class="c"> <input name="Submit" type="submit" value="登陆">
|
 lonita
职务:普通成员
等级:1
金币:0.0
发贴:18
注册:2004/4/20 18:59:16
|
#32004/4/24 23:25:16
可以实现登陆按钮不变大,但是ID和Password的宽度太宽了,还是不行啊
|
 缺缺
职务:管理员
等级:8
金币:41.0
发贴:9620
注册:2004/1/14 19:14:47
|
#42004/5/3 17:05:09
[Ctrl+A 全部选择 提示:你可先修改部分代码,再按运行]
|
 我佛山人
职务:版主
等级:4
金币:16.0
发贴:2269
注册:2002/8/7 15:09:27
|
#52004/5/4 14:44:01
在CSS里写: input{behavior:url(input.htc)} 然后用这个HTC自动处理: www.thugx.com/skin1/style/input.htc
|
 QiFei
职务:普通成员
等级:1
金币:3.0
发贴:144
注册:2003/9/11 14:29:40
|
#62004/5/4 15:22:45
晕, blur.htc。
|