• 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;

  • 相关阅读:
    linux系统sed命令输出匹配字符的行及其后若干行
    linux系统中统计每一行的字符数
    linux系统中sed复合命令
    [转载]J2EE程序员应该掌握的Linux系统的知识
    [转载]Linuz常用命令(1)
    [转载]J2EE程序员应该掌握的Linux系统的知识
    [转载]Linuz常用命令(1)
    [转载]Oracle常用函数大全
    [转载]Linuz常用命令(1)
    [转载]Linux常用命令(2)
  • 原文地址:https://www.cnblogs.com/lyt598/p/11158053.html
Copyright © 2020-2023  润新知