Custom Upload Button

前端 未结 8 1024
盖世英雄少女心
盖世英雄少女心 2020-11-28 10:40

hi i was just wondering how you can create you own custom file upload button, because the best i can do is

\"en

相关标签:
8条回答
  • 2020-11-28 11:29

    Use CSS to style the button by its id or class.

    This might help: http://speckyboy.com/2009/05/27/22-css-button-styling-tutorials-and-techniques/

    0 讨论(0)
  • 2020-11-28 11:31

    Here is an approximation to the button you want with css/html

    html

    <button class="upload">Choose a file to upload...</button>
    

    css

    .upload{
        border:0;
        padding:10px 20px;
        -moz-border-radius:10px;
        border-radius:10px;
        background-color:#4488ee;
        color:white;
        font-size:16px;
    }
    

    demo http://jsfiddle.net/gaby/qdX5d/2/

    for rounded corners in pre-IE9 use css3pie

    0 讨论(0)
提交回复
热议问题