Skip to content

Commit

Permalink
mod: 调整图片初始展示大小
Browse files Browse the repository at this point in the history
  • Loading branch information
yangrunkang committed Feb 7, 2023
1 parent 006a59c commit f38ef6e
Showing 1 changed file with 8 additions and 16 deletions.
24 changes: 8 additions & 16 deletions upupor-web/src/main/resources/static/css/common/img.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,36 +26,28 @@
*/

article img{
/*width: auto;*/
/*height: auto;*/
max-width: 100%;
max-height: 100%;
max-width: 50%;
max-height: 50%;
margin: 0 auto;
}

article figure img{
/*width: auto;*/
/*height: auto;*/
max-width: 100%;
max-height: 100%;
max-width: 50%;
max-height: 50%;
margin: 0 auto;
}

/*兼容历史评论图片样式*/
.cherry-markdown figure img{
/*width: auto;*/
/*height: auto;*/
max-width: 100%;
max-height: 100%;
max-width: 50%;
max-height: 50%;
margin: 0 auto;
}


.cherry .cherry-previewer img {
/*width: auto;*/
/*height: auto;*/
max-width: 100%;
max-height: 100%;
max-width: 50%;
max-height: 50%;
}

.cherry-markdown p a {
Expand Down

0 comments on commit f38ef6e

Please sign in to comment.