欢迎来到DIVCSS5查找CSS资料与学习DIV CSS布局技术!
  输入框(input) 边框
  
  使用 border 属性可以修改 input 边框的大小或颜色,使用 border-radius 属性可以给 input 添加圆角:
  
  CSS 实例
  
  input[type=text] {
  
  border: 2px solid red;
  
  border-radius: 4px;
  
  }
  
  如果你只想添加底部边框可以使用 border-bottom 属性:
  
  CSS 实例
  
  input[type=text] {
  
  border: none;
  
  border-bottom: 2px solid red;
  
  }
  
  输入框(input) 颜色
  
  可以使用 background-color 属性来设置输入框的背景颜色,color 属性用于修改文本颜色:
  
  CSS 实例
  
  input[type=text] {
  
  background-color: #3CBC8D;
  
  color: white;
  
  }

如需转载,请注明文章出处和来源网址:http://www.divcss5.com/rumen/r64214.shtml