留方

杨小杰emlog侧边栏添加新浪图床上传样式及接口
杨小杰博客 新浪图床上传样式,马克一份备用!<style type="text/css"...
扫描右侧二维码阅读全文
13
2018/10

杨小杰emlog侧边栏添加新浪图床上传样式及接口

杨小杰博客 新浪图床上传样式,马克一份备用!
请输入图片描述

<style type="text/css">
#file{position:absolute;z-index:1;cursor:pointer;opacity:0;}
#file,.btn_mouseout{background:#6F8EC5;color:#FFF;display:block;line-height:37px;text-align:center;width:100%;}
#sinaimg{width:50%;padding-bottom: 25px;}
#sinaimgurl{background: rgba(255, 0, 0, 0);padding: 5px;line-height: 31px;border: 1px solid #ddd;width: 286px;color: #999;border-radius: 4px;}
#img{text-align: center;width: 100%}
.upload-drag{
  position: relative;
  padding: 30px;
  border: 1px dashed #e2e2e2;
  background-color: #fff;
  text-align: center;
  cursor: pointer;
  color: #999;
}
</style>
<script type="text/javascript" src="https://liufw.cn/irom/js/bootstrap.min.js"></script>
<script type="text/javascript" src="https://liufw.cn/irom/js/layer.js"></script>
<form id="form1">
  <div class="upload-drag" id="upload-drag" onclick="file.click()" title="点击上传图片">
    <img src="https://liufw.cn/usr/uploads/sina/5cc7b000003bc.jpg">
<p id="stat">点击上传</p>
    <input type="file" id="file" name="file" onchange="sc();" style="display:none" accept="image/*"/>  
  </div>
</form>
<div id="img"></div>
<div id="imgurl"></div>
<script type="text/javascript" src="https://liufw.cn/irom/js/sinaup.js"></script>

点击上传

Last modification:October 13th, 2018 at 10:59 am
If you think my article is useful to you, please feel free to appreciate

Leave a Comment

One comment

  1. 精斑鉴定     Windows 7 /    Google Chrome

    新浪图床有集合插件吗