【问题标题】:how to change the wordpress theme css如何更改 wordpress 主题 css
【发布时间】:2021-01-26 19:43:03
【问题描述】:

【问题讨论】:

    标签: html css wordpress css-selectors atag


    【解决方案1】:

    您不会使用 #a { ... } 作为选择器来处理 <a> 标签 - #a 将是具有“a”作为其 ID 的元素的选择器,例如 <p id="a">... .

    通过 CSS 中的 a:link { ... } 和所有其他变体(:visited、:hover、:active、:focus)简单地处理链接

    【讨论】:

      【解决方案2】:

      试试这样:

      #a{
        color: #4c4c4c !important;
      }
      

      CSS 中的! important 属性表示将忽略元素上的所有后续规则,并应用! important 表示的规则。此规则会覆盖所有之前的样式规则——! important 属性会提高其优先级。

      【讨论】:

        猜你喜欢
        • 2016-02-13
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2014-12-07
        • 2018-03-09
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多