更改默认的按钮button的样式

时间:2015/12/2 15:21:00来源:互联网 作者:flyso 点击: 901 次

方式一:

<style>
input{ 
 color: expression(this.type=="button"?'red':'blue'); 
 background-color: expression(this.type=="submit"?'#b3cc92':'');
}
< /style> 
< input type=button value="提交"> 


方式二:


input[type=button]{
 background:#F0F0F0 repeat-x;
 padding-top:3px;
 border-top:1px solid #708090;
 border-right:1px solid #708090;
 border-bottom:1px solid #708090;
 border-left:1px solid #708090; 
 width:80px;
 height:auto;
 font-size:10pt;
 cursor:hand;
}
  


Copyright © 2005 - 2016 flyso.cn. 飞搜 版权所有 鄂ICP备11002783号-3