gpt4 book ai didi

css - Wordpress (Genesis) 小部件列未正确显示

转载 作者:行者123 更新时间:2023-11-28 05:01:13 26 4
gpt4 key购买 nike

我正在这个网站上工作:http://www.livingthelighterlife.com/

如果滚动到页脚所在的底部,您将看到两个小部件:“非常感谢您的光临”和“精选帖子和食谱”——后者以黑色显示以显示其大小。您会注意到该部分中的小部件是一个列式特色图像小部件。我将它设置为“四分之一”,但最后一张图片正在下降到下一行而不是在第四列中。不知道为什么会这样,我已经尝试了所有我能想到的方法来修复它。不确定要提供什么编码,但这是一个开始:

/*
Site Footer
---------------------------------------------------------------------------------------------------- */

.footer-widgets-1 h3.widgettitle:before, .footer-widgets-1 h3.widgettitle:after,
.footer-widgets-2 h3.widgettitle:before, .footer-widgets-2 h3.widgettitle:after,
.footer-widgets-3 h3.widgettitle:before, .footer-widgets-3 h3.widgettitle:after {
background-color: #dadada;
}

.footer-widgets-3 h3.widgettitle {
margin-top: 0px;
}

.footer-widgets-3 section#text-6 h3.widgettitle {
margin-top: 40px;
}

/* Main Footer Structure
--------------------------------------------- */

.footer-widgets {
width: 1040px;
margin: 14px auto;
padding: 0px;
color: #5b5b5b;
text-align: center;
}

.footer-widgets-1 {
width: 400px;
}

.footer-widgets-2 {
width: 640px;
}

.footer-widgets-1, .footer-widgets-2 {
float: left;
}

.footer-widgets-1 {
padding-left: 0px;
padding-right: 15px;
}

.footer-widgets-2 {
padding: 0px;
background-color: #000000;
}

.footer-widgets-2 .five-sixths,
.footer-widgets-2 .four-sixths,
.footer-widgets-2 .one-fourth,
.footer-widgets-2 .one-half,
.footer-widgets-2 .one-sixth,
.footer-widgets-2 .one-third,
.footer-widgets-2 .three-fourths,
.footer-widgets-2 .three-sixths,
.footer-widgets-2 .two-fourths,
.footer-widgets-2 .two-sixths,
.footer-widgets-2 .two-thirds {
float: left;
margin-left: 2%;
}

.footer-widgets-2 .one-half,
.footer-widgets-2 .three-sixths,
.footer-widgets-2 .two-fourths {
width: 49%;
}

/* Main Footer Formatting
--------------------------------------------- */

.footer-widgets-1 h3.widgettitle, .footer-widgets-2 h3.widgettitle {
margin-top: 0px;
margin-bottom: 27px;
}
<div class="footer-widgets" id="genesis-footer-widgets"><h2 class="genesis-sidebar-title screen-reader-text">Footer</h2><div class="wrap"><div class="footer-widgets-1 widget-area"><section id="text-17" class="widget widget_text"><div class="widget-wrap"><h3 class="widgettitle widget-title">Thanks So Much for Stopping By!</h3>
<div class="textwidget"><img src="http://www.livingthelighterlife.com/wp-content/uploads/2016/10/me.png" style="float: left;">

<font size="2px"><b>Hi, I'm Samantha!</b> Music and food lover, wine<br>and whiskey drinker, animal-rights activist, and contemporary solo-vocalist. I spent many, <i>many</i> years struggling with weight loss because I believed I had to be perfect to lose weight and live a healthy lifestyle. That couldn't be any further from the truth! Join me as I cook yummy dishes, share healthy meal plans, create new workout routines, and live my own version of a healthy lifestyle ... most of the time! <a href="/about" class="bio-read-more">READ MORE »</a></font></div>
</div></section>
</div><div class="footer-widgets-2 widget-area"><section id="featured-post-17" class="widget featured-content featuredpost"><div class="widget-wrap"><h3 class="widgettitle widget-title">Featured Posts &#038; Recipes</h3>
<article class="simple-grid one-fourth odd first post-59 post type-post status-publish format-standard has-post-thumbnail category-recipes tag-cheese tag-eggs tag-flour tag-sesame-seeds entry"><a href="http://www.livingthelighterlife.com/sesame-pogaca-bread-with-brown-shell-eggs/" title="Sesame Pogaca Bread with Brown-Shell Eggs" class="alignnone"><img width="150" height="150" src="http://i1.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/eggs.jpg?resize=150%2C150" class="entry-image attachment-post" alt="" itemprop="image" srcset="http://i1.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/eggs.jpg?resize=150%2C150 150w, http://i1.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/eggs.jpg?resize=450%2C450 450w, http://i1.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/eggs.jpg?zoom=2&amp;resize=150%2C150 300w" sizes="(max-width: 150px) 100vw, 150px" /></a></article><article class="simple-grid one-fourth post-64 post type-post status-publish format-standard has-post-thumbnail category-uncategorized tag-watermelon entry"><a href="http://www.livingthelighterlife.com/red-juicy-summer-watermelon-slices/" title="Red Juicy Summer Watermelon Slices" class="alignnone"><img width="150" height="150" src="http://i2.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/watermelon.jpg?resize=150%2C150" class="entry-image attachment-post" alt="" itemprop="image" srcset="http://i2.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/watermelon.jpg?resize=150%2C150 150w, http://i2.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/watermelon.jpg?resize=450%2C450 450w, http://i2.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/watermelon.jpg?zoom=2&amp;resize=150%2C150 300w" sizes="(max-width: 150px) 100vw, 150px" /></a></article><article class="simple-grid one-fourth odd post-46 post type-post status-publish format-standard has-post-thumbnail category-recipes tag-granola tag-milk tag-nectarines entry"><a href="http://www.livingthelighterlife.com/hot-granola-cereal-with-nectarine-segments/" title="Hot Granola Cereal with Nectarine Segments" class="alignnone"><img width="150" height="150" src="http://i2.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/nectarines.jpg?resize=150%2C150" class="entry-image attachment-post" alt="" itemprop="image" srcset="http://i2.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/nectarines.jpg?resize=150%2C150 150w, http://i2.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/nectarines.jpg?resize=450%2C450 450w, http://i2.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/nectarines.jpg?zoom=2&amp;resize=150%2C150 300w" sizes="(max-width: 150px) 100vw, 150px" /></a></article><article class="simple-grid one-fourth post-42 post type-post status-publish format-standard has-post-thumbnail category-recipes tag-flour entry"><a href="http://www.livingthelighterlife.com/whole-wheat-speckled-marble-bread/" title="Whole Wheat Speckled Marble Bread" class="alignnone"><img width="150" height="150" src="http://i2.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/bread-1.jpg?resize=150%2C150" class="entry-image attachment-post" alt="" itemprop="image" srcset="http://i2.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/bread-1.jpg?resize=150%2C150 150w, http://i2.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/bread-1.jpg?resize=450%2C450 450w, http://i2.wp.com/www.livingthelighterlife.com/wp-content/uploads/2016/09/bread-1.jpg?zoom=2&amp;resize=150%2C150 300w" sizes="(max-width: 150px) 100vw, 150px" /></a></article></div></section>
</div></div></div>

最佳答案

将您的 css 更改为:

.footer-widgets-2 .five-sixths, .footer-widgets-2 .four-sixths, .footer-widgets-2 .one-fourth, .footer-widgets-2 .one-half, .footer-widgets-2 .one-sixth, .footer-widgets-2 .one-third, .footer-widgets-2 .three-fourths, .footer-widgets-2 .three-sixths, .footer-widgets-2 .四分之二,.footer-widgets-2 .two-sixths,.footer-widgets-2 .two-thirds {
向左飘浮;
左边距:1.5%;
}

当前边距设置为margin-left: 2%; 但需要改为margin-left: 1.5%;

关于css - Wordpress (Genesis) 小部件列未正确显示,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40096717/

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