• [织梦吧]唯一域名:www.dedecms8.com,织梦DedeCMS学习平台.

当前位置: > 编程与数据库 > Jsp编程 >

通过样式调整input 中password text默认长度

来源: www.dedecms8.com 编辑:织梦吧 时间:2012-06-29点击:

<input > 标签内的 type 分别为 password 和 text 时其默认长度和宽度不一致,而在做登陆框时往往需要将它们的长度和宽度设置一致。如下的方法可以通过 css 控制使其一致:
 
 
< html >
< head > </ head >
< body >
调整前:</ br >
用户名:< input type ="text" id ="tex" > </ br >
密  码:< input type ="password"     id ="pass" > </ br > </ br >
调整后:</ br >
用户名:< input type ="text"     style ="width:180px;height:20px;" id ="tex" > </ br >
密  码:< input type ="password"     style ="width:180px;height:20px;" id ="pass" >
</ body >
</ html >
以下为页面截图:
\

摘自 懒人小何
 

About D8

  • ©2014 织梦吧(d8) DedeCMS学习交流平台
  • 唯一网址 www.DedeCMS8.com 网站地图
  • 联系我们 1170734538@qq.com ,  QQ