首页 > 其他 > 详细

改变type=“file”样式

时间:2017-09-29 14:32:55      阅读:232      评论:0      收藏:0      [点我收藏+]

<!DOCTYPE html>
<html>

<head>
<title></title>
<style type="text/css">
.file {
position: relative;
display: inline-block;
width: 100px;
height: 50px;
border:1px solid #000;
background: url("images/product_01.jpg");
background-size: 100% 100%;
}

.file input {
position: absolute;
font-size: 100px;
right: 0;
top: 0;
opacity: 0;
bottom: 0;
}

</style>
</head>

<body>
<a href="javascript:;" class="file">
<input type="file" name="" id="">
</a>
</body>

</html>

改变type=“file”样式

原文:http://www.cnblogs.com/wshijie/p/7610746.html

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