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
6c9520e2
authored
May 13, 2020
by
肖康
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
打印图片问题
parent
9c29d7c3
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
39 additions
and
0 deletions
resources/views/web/prints.blade.php
resources/views/web/prints.blade.php
View file @
6c9520e2
<link
href=
"/css/style.css"
rel=
"stylesheet"
>
<link
href=
"/css/style.css"
rel=
"stylesheet"
>
<style>
body
{
background
:
#fff
;}
.layui-btn
{
display
:
inline-block
;
height
:
38px
;
line-height
:
38px
;
padding
:
0
18px
;
background-color
:
#009688
;
color
:
#fff
;
white-space
:
nowrap
;
text-align
:
center
;
font-size
:
14px
;
border
:
none
;
border-radius
:
2px
;
cursor
:
pointer
;
}
</style>
<div
class=
"dybox"
>
<div
class=
"dybox"
>
@foreach($html as $item)
@foreach($html as $item)
{!! $item !!}
{!! $item !!}
@endforeach
@endforeach
</div>
</div>
<script
src=
"../../../../js/jquery-2.2.1.js"
></script>
<script
type=
"text/javascript"
>
$
(
function
(){
$
(
".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
%
"
})
})
// setTimeout(function(){
// window.print();
// }, 100);
})
</script>
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