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

Hexo 编译后的表格没办法使用 markdown的语法标注文字对齐 #663

Open
tdingquan opened this issue May 28, 2021 · 3 comments

Comments

@tdingquan
Copy link

materialize.min.css 中的 td, th css 样式中覆盖了下面的attribute中的 text_align 样式。

image

@blinkfox
Copy link
Owner

blinkfox commented Jun 3, 2021

只能自定义设置强制样式覆盖了

@tdingquan
Copy link
Author

tdingquan commented Jun 4, 2021

我有一个mr #664 就去掉了里面依赖库的一个样式,把这个问题解决了
请看一下

@yanhuacuo
Copy link

hexo-theme-matery\source\css\my.css

下,添加样式表强指了:

/* 表格居中 */

td,
th {
    [padding](https://webplatform.github.io/docs/css/properties/padding): 15px 5px;
    [display](https://webplatform.github.io/docs/css/properties/display): table-cell;
    [text-align](https://webplatform.github.io/docs/css/properties/text-align): center;
    [vertical-align](https://webplatform.github.io/docs/css/properties/vertical-align): middle;
    [border-radius](https://webplatform.github.io/docs/css/properties/border-radius): 0
}

#articleContent table {
    [display](https://webplatform.github.io/docs/css/properties/display): table;
    [width](https://webplatform.github.io/docs/css/properties/width): 100%;
    [border-collapse](https://webplatform.github.io/docs/css/properties/border-collapse): collapse;
    [border-spacing](https://webplatform.github.io/docs/css/properties/border-spacing): 0;
    [overflow](https://webplatform.github.io/docs/css/properties/overflow): auto;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants