zhutouying
input { 
    solid #999;height:22px; 
    background:#ffffff; 
    line-height:22px; 
    margin:0px; padding:0px;/*表单输入框内文字居中*/
    vertical-align:middle;/*表单控件上下居中对齐*/} 

 设置input的宽度和高度

.input{ width:300px; height:18px; }

在input中调用该class,这个设置统一的宽度可以解决type=text和type=password长度不同的问题

<input class="input" type="text" name="gsmc" value=\'<%=gsmc%>\' disabled="disabled"/>

其中disabled属性是设置该input为不可编辑

设置input无边框并且不可编辑

 style="readonly:expression(this.readOnly=true);border:0px"

 

分类:

技术点:

相关文章:

  • 2021-11-02
  • 2021-12-01
  • 2021-09-13
  • 2021-12-05
  • 2021-09-13
  • 2021-09-13
  • 2021-10-10
猜你喜欢
  • 2021-09-17
  • 2021-07-19
  • 2021-10-10
  • 2021-12-04
  • 2021-12-22
  • 2021-09-17
相关资源
相似解决方案