首页 >web前端 >html教程 >Input File 表单上传按钮美化_html/css_WEB-ITnose

Input File 表单上传按钮美化_html/css_WEB-ITnose

WBOY
WBOY原创
2016-06-24 12:33:501426浏览

HTML

<div class="input-file-button">上传图片<input type="file" class="input-file" hidefocus /></div>

CSS

.input-file-button {  display:block;  width: 200px;  height: 80px;  text-align: center;  line-height: 80px;  color: #fff;  font-size: 30px;  font-family: "MicroSoft YaHei";  text-shadow: 0px 0 5px #A74900;  border-radius: 5px;  overflow: hidden;  position: relative;  background: #EC6D0B;}.input-file {  height: 80px;  font-size: 200px;  overflow: hidden;  position: absolute;  top: 0;  right: 0;  opacity: 0;  filter: alpha(opacity=0);  cursor: pointer;}

 
声明:
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn