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

html+css上传文件控件美化

时间:2017-08-13 01:12:24      阅读:258      评论:0      收藏:0      [点我收藏+]

标签:pos   put   enter   文件   class   ati   input   code   utf-8   

<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
    <meta charset="utf-8" />
    <style>
        .fileinput-button {
            position: relative;
            display: inline-block;
            background: #9d1ccd;
            border: 1px solid #99D3F5;
            border-radius: 4px;
            padding: 4px 12px;
            overflow: hidden;
            color: white;
            text-decoration: none;
            text-indent: 0;
            line-height: 20px;
        }

            .fileinput-button input {
                position: absolute;
                right: 0px;
                top: 0px;
                opacity: 0;
                -ms-filter: ‘alpha(opacity=0)‘;
                font-size: 200px;
                cursor: pointer;
            }
    </style>
</head>
<body>
    <div style="text-align:center">
        <span class="fileinput-button">
            <span>上传</span>
            <input type="file" />
        </span>
    </div>
</body>
</html>

 

html+css上传文件控件美化

标签:pos   put   enter   文件   class   ati   input   code   utf-8   

原文地址:http://www.cnblogs.com/move-up/p/7352047.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!