<input type="button" name="submit_but" onClick="loginRS();" class="but_2" value="登录"> 我想让这个Button 以平面的形式显示。请问怎么实现??

解决方案 »

  1.   


    <input type="button" name="submit_but" onClick="loginRS();" class="but_2" value="登录" style="border:1px solid black">
      

  2.   

     input.but_2{width:54px; height:28px; *line-height:30px; overflow:hidden; background:url(http://i3.sinaimg.cn/dy/deco/2009/0807/sinahome_0803_ws_004_search.gif) no-repeat -150px -100px #ffb725; color:#000; font-size:12px; text-align:center; padding:0; margin:0; border:none; cursor:pointer;}
    试试。借用了新浪的图片
      

  3.   

    .btn2{width:54px; height:28px; *line-height:35px; overflow:hidden; background:url(http://i3.sinaimg.cn/dy/deco/2009/0807/sinahome_0803_ws_004_search.gif) no-repeat -150px -100px #ffb725; color:#000; font-size:12px; text-align:center; padding:0; margin:0; border:none; cursor:pointer;}