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
9fa4d548
authored
May 14, 2020
by
孙龙
Browse files
Options
_('Browse Files')
Download
Plain Diff
Merge branch 'master' of
http://119.23.72.7/sunlong_v5/note-library
parents
a19174f7
75dbb81c
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 @
9fa4d548
...
...
@@ -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