zoukankan      html  css  js  c++  java
  • form 文件上传

    通过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; 

       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;

  • 相关阅读:
    Windows Internals 笔记——作业
    Windows Internals 笔记——终止进程
    数据结构与算法-java-数组实现队列和栈
    数据结构与算法-java-稀疏数组
    学习笔记-java两种核心机制-JVM和GC
    python-Django-学习笔记
    python爬虫-大二时候的学习笔记
    KMP算法
    Docker
    排序与查找
  • 原文地址:https://www.cnblogs.com/lyt598/p/11158053.html
Copyright © 2011-2022 走看看