怎么在dreamweaver里设置文本输入框的大小?

nearpoetry 2006-04-15 11:21:03
两个<input>
<input name="username" type="text" maxlength="15" height="15">
<input name="pwd" type="password" height="15">
我有意选择了它们的height一样高,可就是在显示的时候,看上去明显不一样大小,这是怎么回事啊?
...全文
863 2 打赏 收藏 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
大猫钓鱼 2006-04-15
  • 打赏
  • 举报
回复
<style>
.Txt{
height:15px
}
</style>

<input name="username" type="text" maxlength="15" class="Txt" />
<input name="pwd" type="password" class="Txt">

这样写就可以了。
youzi520 2006-04-15
  • 打赏
  • 举报
回复
password 和 text是不一样,用CSS重定义下

28,402

社区成员

发帖
与我相关
我的任务
社区描述
ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

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