码迷,mamicode.com
首页 > Web开发 > 详细

美化文件上传按钮

时间:2015-12-31 12:29:41      阅读:169      评论: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
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!