zoukankan      html  css  js  c++  java
  • 自定义文件上传按钮

    <div class="new-contentarea"> 
      <a href="javascript:void(0)" class="btn-upload-img">选择图片</a>
      <input type="file" class="" name="upload-file" id="upload-file"/>
    </div>
    

      

    .new-contentarea{
    	 165px;
    	overflow:hidden;
    	margin: 0 auto;
    	position:relative;
    	display: inline;
    }
    .btn-upload-img{
      	background-color: #f3fbff;
        border: 1px solid #bfe2fa;
        border-radius: 5px;
        color: #148ed5;
        display: inline-block;
        font-size: 14px;
        line-height: 36px;
        text-align: center;
        padding: 0 10px;
    }
    .new-contentarea input[type=file]{
    	background: #333 none repeat scroll 0 0;
    	height: 36px;
    	left: 0;
    	margin: 0;
    	opacity: 0;
    	position: absolute;
    	top: -7px;
    	 77px;
    	z-index: 2;
    

      

    参考文档:https://blog.csdn.net/ld_____/article/details/48680159

  • 相关阅读:
    对结对编程的测试
    用例
    结对编程 一
    个人项目总结与结对编程的开始
    7-6随便写写
    7-5个人日报
    7-4个人报告
    7.1-7.3个人日报
    6-30个人日报
    6-29个人日报
  • 原文地址:https://www.cnblogs.com/zph666/p/9474708.html
Copyright © 2011-2022 走看看