首頁  >  文章  >  web前端  >  Input File 表单上传按钮美化_html/css_WEB-ITnose

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

WBOY
WBOY原創
2016-06-24 12:33:501373瀏覽

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