首页 > Web开发 > 详细

form 文件上传

时间:2019-07-09 16:33:05      阅读:104      评论:0      收藏:0      [点我收藏+]

通过form属性enctype="multipart/form-data"上传

html:

<form action="" class="" enctype="multipart/form-data" id="peo-new-form">
  <div class="flex flex-pack-center">
    <div class="fullPath peo-edit-fullPath ellips" id="peo-edit-fullPath"></div>
    <a href="javascript:;" class="file peo-edit-file peoForm" id="peo-edit-file">选择文件
      <input type="file" name="" id="editForm">
    </a>
  </div>
</form>

技术分享图片

 

css:

对原有的文件上传进行美化

.file {

   position: relative; 

  width: 160px;

   height: 56px;

   line-height: 40px;

   padding: 7px 10px; 

  text-align: center;

   border-radius: 13px;

   overflow: hidden;

   text-indent: 0;

  color: #54546C;

  font-size: 30px;

  background: #fff;

form 文件上传

原文:https://www.cnblogs.com/lyt598/p/11158053.html

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