【问题标题】:CSS Question - Slider MenuCSS 问题 - 滑块菜单
【发布时间】:2019-09-11 13:33:54
【问题描述】:

图像滑块菜单项在博客页面的每个页面上向下移动 5 像素,它们的位置正确。我可以看到 Firebug 中的变化,但不知道在 CSS 中要修复的位置。 http://drkateklemer.com 谢谢!

【问题讨论】:

    标签: css wordpress menu


    【解决方案1】:

    您的问题在 style.css 的第 662 行,用于有机自然夏季主题。将边距更改为 0px,从此开始:

    #contenthome h1, #content h1 {
        color: #333333;
        font-size: 32px;
        font-family: Arial, Helvetica, sans-serif;
        font-weight: bold;
        text-transform: normal;
        letter-spacing: -1px;
        margin: 5px 0px 5px 0px;
        padding: 0px;
        line-height: 32px;
        }
    

    到这里:

    #contenthome h1, #content h1 {
            color: #333333;
            font-size: 32px;
            font-family: Arial, Helvetica, sans-serif;
            font-weight: bold;
            text-transform: normal;
            letter-spacing: -1px;
            margin: 0px;
            padding: 0px;
            line-height: 32px;
            }
    

    注意:使用 Chrome 的开发者工具测试。

    【讨论】:

    • 很高兴我能帮上忙。如果这是您正在寻找的答案,如果您将其标记为答案,我将非常高兴。
    【解决方案2】:

    wordpress 正在将图像加载到内容块中,我不认为你的 css 只是如何通过你的模板访问图像

    【讨论】:

      【解决方案3】:
      #contenthome h1, #content h1 {
              color: #333333;
              font-size: 32px;
              font-family: Arial, Helvetica, sans-serif;
              font-weight: bold;
              text-transform: normal;
              letter-spacing: -1px;
              margin: 0px 0px 0px 0px;
              padding: 0px;
              line-height: 32px;
          }
      

      【讨论】:

        猜你喜欢
        • 2023-03-06
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2023-04-06
        • 1970-01-01
        • 2021-04-10
        • 1970-01-01
        • 1970-01-01
        相关资源
        最近更新 更多