input=file美化上传按钮 Bootstrap

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/leixu1027/article/details/80680226

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <link rel="stylesheet" href="https://cdn.bootcss.com/bootstrap/3.3.7/css/bootstrap.min.css">
</head>
<body>
    <div class="container" style="margin-top: 30px;">
        <div class="row">
            <div class="col-lg-8 col-sm-6 col-12">
                <div class="input-group">
                    <input type="text" class="form-control" onkeydown="return false;" onpaste="return false;" placeholder="Select file...">
                    <label class="input-group-btn">
                        <span class="btn btn-primary">
                            <i class="glyphicon glyphicon-folder-open"></i>  
                            Browse… <input type="file" style="display: none;" multiple>
                        </span>
                    </label>
                </div>
            </div>
        </div>
    </div>
</body>
</html>

阅读更多
想对作者说点什么? 我来说一句

没有更多推荐了,返回首页