gpt4 book ai didi

css - 覆盖 * CSS 样式

转载 作者:行者123 更新时间:2023-11-28 11:10:22 25 4
gpt4 key购买 nike

在我的第一行中,我有以下样式:

* {
text-align:left;
}

这在整个网站上运作良好,因为大部分网站都是左对齐。然而,少数区域需要 text-align: center 并且它不会更新,即使 !important 也是如此。例如:

table.footer {
text-align:center !important;
}

关于如何解决这个问题有什么想法吗?

最佳答案

它应该像您在这个 live example 中看到的那样工作.

您可能想这样做:

table.footer td
{
text-align:center;
}

!important 无论如何都不需要。

Live example

关于css - 覆盖 * CSS 样式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22094477/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com