首页 > Web开发 > 详细

如何改上传文件按钮样式

时间:2017-10-26 18:37:27      阅读:242      评论:0      收藏:0      [点我收藏+]
html:
<p>
  <span>
    <span class="red">*</span>上传稿件</span>
      <a href="javascript:;" class="a-upload">
        <input type="file" name="file" value="" id="file-input">本地上传
      </a>
    <span class="file-wrap">
      <em class="file-icon"></em>
    <span class="file-name" id="file">
    </span>
</span>
</p>
css:
.a-upload{width: 113px;height: 38px;border-radius: 5px;background: #f3f3f3;text-align: center;line-height: 38px;position: relative;cursor: pointer;color: #333!important;}
.a-upload input{width: 100%;height: 100%;position: absolute;top: 0;left: 0;opacity: 0}
如何显示文件名,看我的其他博客寻找

如何改上传文件按钮样式

原文:http://www.cnblogs.com/yingzi19920226/p/7738252.html

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