首页 > Web开发 > 详细

美化文件上传按钮

时间:2015-12-31 12:26:38      阅读:178      评论:0      收藏:0      [点我收藏+]
<!DOCTYPE html>
<html>
<head>
    <style>
        .fileInputContainer{
            display:block;
            height:32px;
            background:url(http://images.cnblogs.com/cnblogs_com/yeminglong/773287/o_1181850.png);
            position:relative;
            width: 32px;
            z-index:4;

        }
        .fileInput{
            display:blcok;
            height:32px;
            overflow: hidden;
            font-size: 32px;
            position:absolute;
            z-index:5;
            right:0;
            top:0;
            opacity: 0;
            filter:alpha(opacity=0);
            cursor:pointer;
            border:1px solid red;

        }
    </style>
    
</head>
<body>

    <a href="javascript:void(0);" class="fileInputContainer">
        <input class="fileInput" type="file" name="" id="" />
    </a>


</body>
</html>

 

美化文件上传按钮

原文:http://www.cnblogs.com/yeminglong/p/5091140.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!