css Foodie Pro Genesis儿童主题主页的全宽CSS调整
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了css Foodie Pro Genesis儿童主题主页的全宽CSS调整相关的知识,希望对你有一定的参考价值。
/* register and hook the widget area in the genesis_before_content area for home page only */
/*fake demo only DON't use */
nav.nav-primary:after {
content: '';
width: 100%;
height: 0px;
padding-top: 30%;
background: url(http://shaybocks.co/foodiepro/wp-content/uploads/2012/01/nectarines-680x400.jpg) no-repeat center center;
background-size: cover;
margin-top: 30px;
}
/* don't use above */
/* Home Page Structure */
body.home.foodie-pro .site-container {
max-width: none
}
body.home.foodie-pro .site-container .site-header .wrap,
body.home.foodie-pro .site-container nav.nav-primary .wrap,
body.home.foodie-pro .site-inner,
body.home.foodie-pro .site-footer .wrap {
max-width: 1140px;
padding-left: 30px;
padding-right: 30px;
margin-left: auto;
margin-right: auto;
display: block;
clear: both;
float: none;
}
body.home.foodie-pro .footer-widgets {
max-width: 1140px;
margin-left: auto;
margin-right: auto;
}
body.home.foodie-pro .site-container,
body.home.foodie-pro .before-header {
padding-left: 0;
padding-right: 0;
}
@media only screen and (max-width: 1023px) {
body.home.foodie-pro .site-container,
body.home.foodie-pro .before-header {
padding-left: 0;
padding-right: 0;
}
body.home.foodie-pro .site-container .site-header .wrap,
body.home.foodie-pro .site-container nav.nav-primary .wrap,
body.home.foodie-pro .site-inner,
body.home.foodie-pro .footer-widgets,
body.home.foodie-pro .site-footer .wrap {
padding-left: 5%;
padding-right: 5%;
}
}
以上是关于css Foodie Pro Genesis儿童主题主页的全宽CSS调整的主要内容,如果未能解决你的问题,请参考以下文章
css 如何在其他Genesis主题中添加News Pro的移动响应菜单
css 在Genesis Portfolio Pro插件上更改投资组合项目标题的字体大小
css Center Genesis主导航菜单
php Genesis / WordPress - 在儿童主题中注册和排队自定义样式表
css Genesis菜单项差距 - 不幸的是在Dynamik中。删除任何菜单的主背景颜色,让单个菜单项具有
华为儿童手表4pro是啥系统