求一个css怎么写!急

孤翱 2006-03-01 11:29:35
在jsp页面中,用<input type="text" name="user">和<input type="password" name="password">建立起来的输入框,无论怎么设置width和height属性都不能使两者大小一样.不知道大家是怎么解决的.听说用css能控制,大家帮我看下该怎么写啊
...全文
98 4 打赏 收藏 转发到动态 举报
写回复
用AI写文章
4 条回复
切换为时间正序
请发表友善的回复…
发表回复
xinxideyilian 2006-03-01
  • 打赏
  • 举报
回复
<input type="text" class=style1 name="username">
<input type="password" class=style1 name="password">
css
<style type="text/css">
<!--
.STYLE1 {
size:15;
maxlength:20;
width:30;
height:10;
}
-->
</style>
孤翱 2006-03-01
  • 打赏
  • 举报
回复
谢谢大家
sheep219 2006-03-01
  • 打赏
  • 举报
回复
搞一个class在里面就可以了
  • 打赏
  • 举报
回复
<input type="text" name="user" style="width:120px;height:20px">
<input type="password" name="password" style="width:120px;height:20px">

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧