【转】只显示下划线的文本框AND像文字一样的按钮

只显示下划线的文本框,像文字一样的按钮

<style type="text/css"><!--  body{  background-color:#daeeff; /* 页面背景色 */  }  form{  margin:0px; padding:0px;  font:14px;  }  input{  font:14px Arial;  }  .txt{  color:#005aa7;  border-bottom:1px solid #005aa7; /* 下划线效果 */  border-top:0px;  border-left:0px;  border-right:0px;  background-color:transparent; /* 背景色透明 */  }  .btn{  background-color:transparent; /* 背景色透明 */  border:0px; /*border:0px solid #005aa7;边框取消 */  cursor:pointer;  }  --></style>

</head>  <body>  <div>  用户名:  <input type="text" name="name" id="name" class="txt" />
密 码:  <input type="password" name="pwd" id="pwd" class="txt" />
<input type="submit" name="btnSubmit" id="btnCancel" value="重置" class="btn" />  <input type="submit" name="btnSubmit" id="btnSubmit" value="提交" class="btn" />  </div>  </body>  </html>

posted on 2013-10-31 10:46  死神的遗迹  阅读(313)  评论(0编辑  收藏  举报