如何解决在 wordpress css 样式表中找不到最小高度,我该如何覆盖它
我在我的 css 样式表中找到 min-height 时遇到问题。 在Chrome Developer中,在Element.Style中是该选项,即当我取消选中它时,要素映像进入自动调整大小,并且当检查最小高度时,特征图像,它会缩放。 有人可以帮助我在哪里找到它,或者我如何覆盖,或者如何找到 min.height 的类并覆盖它。
模板代码
?>
<div class="project-detail-splitted">
<?PHP if (!empty($prague_post_options['active_title'])): ?>
<section class="container-fluid top-banner no-padd simple fullheight light">
<span class="overlay"></span>
<?PHP the_post_thumbnail( 'full',array('class'=>'s-img-switch') ); ?>
<div class="content">
<?PHP if (!empty($prague_post_options['subtitle'])): ?>
<div class="subtitle">
<?PHP echo esc_html( $prague_post_options['subtitle'] ); ?>
</div>
<?PHP endif ?>
<?PHP the_title( '<h1 class="title">','</h1>' ); ?>
</div>
</section>
<?PHP endif; ?>
这是它的外观图片
解决方法
我认为您需要查看模板设置。代码由javascript添加。
看到你有一个“全高”班级。我想看看它是否可以在模板设置中更改。
您的模板名为“布拉格”,我可以看到其中包含文档 - 也许值得一读。
css 快速解决方案 - 不推荐:
.top-banner.fullheight {
min-height: auto !important;
}
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。