Styling an input type=“file” button

后端 未结 30 1658
终归单人心
终归单人心 2020-11-21 11:50

How do you style an input type=\"file\" button?

30条回答
  •  不思量自难忘°
    2020-11-21 12:14

    Maybe a lot of awnsers. But I like this in pure CSS with fa-buttons:

    .divs {
        position: relative;
        display: inline-block;
        background-color: #fcc;
    }
    
    .inputs {
        position:absolute;
        left: 0px;
        height: 100%;
        width: 100%;
        opacity: 0;
        background: #00f;
        z-index:999;
    }
    
    .icons {
        position:relative;
    }



    Fiddle: https://jsfiddle.net/zoutepopcorn/v2zkbpay/1/

提交回复
热议问题