Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
孙龙
/
note-library
This project
Loading...
Sign in
Toggle navigation
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
May 14, 2020
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
x
parent
a220e387
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
resources/views/web/prints.blade.php
resources/views/web/prints.blade.php
View file @
75dbb81c
...
...
@@ -33,11 +33,20 @@
if
(
$
(
".edit-con"
).
height
()
==
280
){
$
(
".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
(
')'
,
''
);
$
(
this
).
css
({
"background"
:
""
})
$
(
this
).
html
(
"
<
img
src
=
'"+urlo_.substring(1,urlo_.length-1)+"'
/>
");
$(this).find("
img
").css({width:"
100
%
",height:"
100
%
"
})
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
%
"
})
}
})
setTimeout
(
function
(){
window
.
print
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment