Skip to content
  • P
    Projects
  • G
    Groups
  • S
    Snippets
  • Help

孙龙 / note-library

  • This project
    • Loading...
  • Sign in
Go to a project
  • Project
  • Repository
  • Issues 0
  • Merge Requests 0
  • Pipelines
  • Wiki
  • Snippets
  • Settings
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • Files
  • Commits
  • Branches
  • Tags
  • Contributors
  • Graph
  • Compare
  • Charts
Commit 75dbb81c authored 5 years ago by 肖康's avatar 肖康
Browse files
Options
  • _('Browse Files')
  • Download
  • Email Patches
  • Plain Diff

x

parent a220e387
Show whitespace changes
Inline Side-by-side
Showing with 10 additions and 1 deletions
  • resources/views/web/prints.blade.php
resources/views/web/prints.blade.php
View file @ 75dbb81c
...@@ -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();
......
This diff is collapsed. Click to expand it.
  • Write
  • Preview
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