Toggle navigation
Toggle navigation
This project
Loading...
Sign in
platform
/
platform-cms
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
张帅
2019-05-23 14:30:13 +0800
Commit
d1447a6a714bafe948663dcd140b01daee9c3ff1
1 parent
ee64a4fc
封面图宽高
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
web/src/main/webapp/html/grass/longArticle/detail.html
web/src/main/webapp/html/grass/longArticle/detail.html
View file @
d1447a6
...
...
@@ -128,6 +128,9 @@
if
(
width
>
240
){
w
=
240
;
}
if
(
width
==
1
||
height
==
1
){
w
=
240
;
}
var
h
=
w
*
height
/
width
;
imgHtml
=
'<img src="'
+
detailInfo
.
coverImg
+
'" style="width:'
+
w
+
'px;height:'
+
h
+
'px;"/>'
;
$
(
"#coverImg"
).
html
(
imgHtml
);
...
...
Please
register
or
login
to post a comment