swfupload使用透明实现自定义背景和样式

<div style="position:relative">
    <a href="javascript:void(0)" class=" w_local" style="color: rgb(102, 102, 102); text-decoration: none;" id="upbtn">图片上传</a>
<div id="uploading"><span id="upload"></span></div>
    <input id="btnCancel" type="button" value="Cancel All Uploads" onclick="swfu.cancelQueue();" disabled="disabled" style="margin-left: 2px; font-size: 8pt; height: 29px;" />
   </div>

this.ensureDefault("button_window_mode", SWFUpload.WINDOW_MODE.TRANSPARENT); //这句话是调整为透明swfupload.js

a.w_local {
    background-position: 0 0;
    width: 75px;
}
a.w_local, a.w_phone, a.w_localn, a.w_phonen
{
  display:inline-block;
    height: 29px;
    overflow: hidden;
    padding-left: 25px;
    vertical-align: middle;
    line-height:29px;
}
a.w_local, a.w_phone, a.w_localn, a.w_phonen, .img_selector, .img_selector.hover, a.item_close, .drag .img_selector, a.w_local span em {
    background: url("../images/image_upload.png") no-repeat scroll 0 0 transparent;
}
#uploading
{
    height: 28px;
    left: 0;
    position: absolute;
    top: 0;
    width: 75px;
    display:block;
}

 

posted @ 2013-06-14 12:09  老高dotnet实践  阅读(2784)  评论(0编辑  收藏  举报