如题,我想用我自己定义的按钮式样。写谢谢了

解决方案 »

  1.   

    可以使用css样式的类选择器jsp文件中的按钮:
    <input type="button" class="btn" value="浏览" />css文件中的样式:
    .btn {
    width:100px;
    color:green;
    }
      

  2.   

    你可以参考niceforms 样式挺不错的http://www.emblematiq.com/lab/niceforms/Niceforms v.2.0This is the latest stable version.
    演示地址 http://www.emblematiq.com/lab/niceforms/demo/v20/niceforms.html
      

  3.   


    楼主很可能用的是<input type="file"> 不知道css对他能否起效啊。
      

  4.   


    Niceforms v.2.0This is the latest stable version.
    下载地址 http://www.emblematiq.com/lab/niceforms/download/v20/niceforms-v2.0.zip支持 IE7+, Firefox2+, Safari3+, Opera9+, Chrome0.3+, Mozilla1.5+, Camino1.6
      

  5.   

    是的,type="file" 所以按钮的样式比较麻烦
      

  6.   


    可以的,http://www.google.com.hk/search?hl=zh-CN&source=hp&q=input+type%3D%22file%22+css&aq=o&aqi=&aql=&oq=&gs_rfai=
      

  7.   

    http://audi.tw/Blog/CSS/input.type=file.asp