Commit 75dbb81c by 肖康

x

parent a220e387
Showing with 10 additions and 1 deletions
...@@ -33,11 +33,20 @@ ...@@ -33,11 +33,20 @@
if($(".edit-con").height()==280){ if($(".edit-con").height()==280){
$(".print").css({"height":"301px"}) $(".print").css({"height":"301px"})
} }
$(".huabuitem[type='6'],.huabuitem[type='7']").each(function(){ $(".huabuitem[type='5'],.huabuitem[type='6'],.huabuitem[type='7']").each(function(){
var urlo_=$(this).css("backgroundImage").replace('url(','').replace(')',''); var urlo_=$(this).css("backgroundImage").replace('url(','').replace(')','');
$(this).css({"background":""}) $(this).css({"background":""})
$(this).html("<img src='"+urlo_.substring(1,urlo_.length-1)+"' />"); $(this).html("<img src='"+urlo_.substring(1,urlo_.length-1)+"' />");
if($(this).attr("name")=="yiweimait"){
var max_width=$(this).width();
var width_=$(this).find("img").width();
if(width_>max_width){
width_=max_width
}
$(this).find("img").css({height:"100%",width:width_});
}else{
$(this).find("img").css({width:"100%",height:"100%"}) $(this).find("img").css({width:"100%",height:"100%"})
}
}) })
setTimeout(function(){ setTimeout(function(){
window.print(); window.print();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment