zoukankan      html  css  js  c++  java
  • HTML中图片添加

    图片添加后保存的是添加路径

     例:

    <div class="form-group">
      <label class="col-sm-3 control-label no-padding-right" for="image1"> 图片1
        <%if(product.image1!'' != ''){%>
        <img alt="${aa.name!''}" width="50px" height="50px" src="${contextPath}/imageFile/getImage?imagePath=${product.image1!''}" >
        <%}%>
      </label>
      <div class="col-sm-9">
        <input name="portraitFile1" type="file" id="image1" placeholder="请上传图片" class="col-xs-10 col-sm-5" value="${aa.image1!''}"/>
      </div>
    </div>
    <div class="form-group">
      <label class="col-sm-3 control-label no-padding-right" for="image2"> 图片2
        <%if(product.image2!'' != ''){%>
        <img alt="${aa.name!''}" width="50px" height="50px" src="${contextPath}/imageFile/getImage?imagePath=${aa.image2!''}" >
        <%}%>
      </label>
      <div class="col-sm-9">
        <input name="portraitFile2" type="file" id="image2" placeholder="请上传图片" class="col-xs-10 col-sm-5" value="${aa.image2!''}"/>
      </div>
    </div>

  • 相关阅读:
    Recommender Systems 基于知识的推荐
    粒子群优化算法简介
    彻底弄懂LSH之simHash算法
    c++ 字符串函数用法举例
    Linux上的运行的jar包
    推荐系统判定标准
    python 细枝末节
    PV UV
    python解析json
    生成n对括号的所有合法排列
  • 原文地址:https://www.cnblogs.com/FloraIgnace/p/6084989.html
Copyright © 2011-2022 走看看