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

对于较长的数学公式 #32

Closed
niu-niu opened this issue Feb 21, 2018 · 2 comments
Closed

对于较长的数学公式 #32

niu-niu opened this issue Feb 21, 2018 · 2 comments
Labels

Comments

@niu-niu
Copy link

niu-niu commented Feb 21, 2018

在手机端(4.7寸屏幕)上,较长的数学公式会直接向右超出边界,而不是和文字一起规约在一定的页宽内。是不是我哪里没有设置好?看到其他主题默认情况下也会出现这样的问题。先谢过up主了。

olOwOlo added a commit that referenced this issue Feb 22, 2018
@olOwOlo
Copy link
Owner

olOwOlo commented Feb 22, 2018

修复了行间公式,溢出的内容会出现滚动条

如果还需要应用到行内公式,可以定义一个 customCSS 添加下面的代码(会有一点副作用,所有公式的位置都会出现一些偏移)

.post .post-content .MathJax_CHTML {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  vertical-align: middle;
}

如果有更好的方法,还望指点(〃ノωノ)

@niu-niu
Copy link
Author

niu-niu commented Feb 22, 2018

用滚动条已经是一个很优雅的方式了,已经试过了,很好用。谢谢阿婆主

@olOwOlo olOwOlo added the Bug label Mar 6, 2018
@olOwOlo olOwOlo closed this as completed Mar 6, 2018
daymade pushed a commit to daymade/hugo-theme-even that referenced this issue Sep 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants