Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何设置图片居中? #21

Open
Bugatti100Peagle opened this issue Nov 9, 2019 · 2 comments
Open

如何设置图片居中? #21

Bugatti100Peagle opened this issue Nov 9, 2019 · 2 comments
Assignees
Labels
enhancement Feature enhancement or changes base on current feature
Projects

Comments

@Bugatti100Peagle
Copy link

如图,想设置图片自动居中

@bennyxguo
Copy link
Owner

目前没有这个支持,但是其实是有办法让纯markdown也支持的。
现在的话你可以用html+css替代markdown语法来引入图片哦!

例子

# 标题

文字...

<img style="margin: 0 auto;" src="/example/img.gif" height=100 width=100 />

继续写markdown

# 标题2

文案2 

@bennyxguo bennyxguo self-assigned this Nov 9, 2019
@bennyxguo bennyxguo added the enhancement Feature enhancement or changes base on current feature label Nov 9, 2019
@bennyxguo bennyxguo added this to To do in 1.x Roadmap via automation Nov 9, 2019
@bennyxguo bennyxguo pinned this issue Nov 9, 2019
@bennyxguo bennyxguo moved this from To do to In progress in 1.x Roadmap Nov 11, 2019
@bennyxguo bennyxguo moved this from In progress to Done in 1.x Roadmap May 7, 2020
@ylxy123
Copy link

ylxy123 commented Mar 24, 2021

我是在md里面用
<center><img src="/img/img.jpg" alt=""></center>
设置的,希望能帮到你

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature enhancement or changes base on current feature
Projects
1.x Roadmap
  
Done
Development

No branches or pull requests

3 participants