繁体   English   中英

我的Wordpress网站的最高利润来自哪里?

[英]Where is this top margin coming from on my Wordpress website

因此,我使用的是自定义的二十二主题。 我需要删除标题菜单上方的上边距。 看到这里http://blog.littlenomads.com/

在我的儿童样式表中,我添加了:

    .site-header {
    padding: 0px 0 !important;
    margin: 0px 0 !important;
}
/* remove site margin */
body .site{margin:0 !important;max-width: 100% !important;}

.site-content {
margin-top: 0px;
}

我在这里找到了解决方案: https : //wordpress.stackexchange.com/questions/85414/twenty-twelve-theme-remove-margins

我还以主题“二十二十二”样式表完全注释掉了:

    /* Minimum width of 960 pixels. */
@media screen and (min-width: 960px) {
    body {
        background-color: #e6e6e6;
    }
    /*Brian Ogden 8-12-2014*/
    /*body .site {
        padding: 0 40px;
        padding: 0 2.857142857rem;
        margin-top: 48px;
        margin-top: 3.428571429rem;
        margin-bottom: 48px;
        margin-bottom: 3.428571429rem;
        box-shadow: 0 2px 6px rgba(100, 100, 100, 0.3);
    }*/
    body.custom-background-empty {
        background-color: #fff;
    }
    body.custom-background-empty .site,
    body.custom-background-white .site {
        padding: 0;
        margin-top: 0;
        margin-bottom: 0;
        box-shadow: none;
    }
}



  * Minimum width of 600 pixels. */
@media screen and (min-width: 600px) {
    .author-avatar {
        float: left;
        margin-top: 8px;
        margin-top: 0.571428571rem;
    }
    .author-description {
        float: right;
        width: 80%;
    }

    /*.site {
        margin: 0 auto;
        max-width: 960px;
        max-width: 68.571428571rem;
        overflow: hidden;
    }*/

我还尝试了以下解决方案: http : //wordpress.org/support/topic/removing-page-title-and-white-space-from-twenty-twelve-theme

我猜您已登录到您的网站,是wp-admin栏将html / body(html {margin-top:32px!important;}等。)用!important样式下移到登录时先登录?

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM