我在WordPress中使用引导程序。标头没有在WordPress中显示完全宽度。但是,当我测试没有WordPress的代码时,它会显示带有背景图像的全宽度。原因是什么?
//my html
<div class="container">
<div class="row">
<div class="col-xs-12">
<div class="header-container text-center background-image" style="background-image: url(<?php header_image(); ?>);">
</div>
</div>
</div>
</div>
//css settings
.header-container{
display: block;
position: relative;
height: 326px;
}
.background-image{
background-size: cover;
background-position: center center;
background-repeat: no-repeat;
}发布于 2017-09-19 07:13:10
一旦添加宽度: 100%;在标题容器css中
https://wordpress.stackexchange.com/questions/280412
复制相似问题