0
저는 (PHP를 사용하여) Wordpress 템플릿을 만들고 있습니다.div의 배경 이미지가 특정 크기보다 작게 접히는 것을 방지하려면 어떻게해야합니까?
내 기본 페이지 설정 :
-
상단에
- 탐색 모음 , 따라서 왜 내가 사용하고 (위에 입력/텍스트 승
- 100 % 폭의 그림 (가 고정되지는 스크롤에 사라집니다) 배경 이미지) 나는 윈도우의 높이의 크기를 조정하려고 할 때
내 문제는 내용의
<!-- div w/ BG image -->
<div id="introParagraph" class="m-b-2 p-y-2">
<h1 class="text-xs-left col-xs-10 col-md-offset-1 m-b-1">Our <br> approach</h1>
<!-- Inner div that styles a paragraph inside pic -->
<div class="col-md-3 col-md-offset-1 col-xs-6 m-t-1">
<h3 class="text-xs-left" id="question">How we help you figure out what works for you and your business. <br><br> Click on the icons to learn more. </h3>
</div>
</div>
그리고 여기 내 CSS의 :
<!--------------- Approach Intro -------------------->
<div id="introParagraph" class="m-b-2 p-y-2">
<?php
if (have_rows('approach_introduction')):while(have_rows('approach_introduction')):the_row();
?>
<h1 class="text-xs-left col-xs-10 col-md-offset-1 m-b-1">
<?php
the_sub_field('page_header');
?>
</h1>
<div class="col-md-3 col-md-offset-1 col-xs-6 m-t-1">
<h3 class="text-xs-left" id="question">
<?php
the_sub_field('page_description_paragraph');
?>
<br><br> Click on the icons to learn more. </h3>
</div>
<?php endwhile;
else :
// no rows found
endif;
?>
</div>
IMAGE 무슨 일이 일어나고 있는지 볼 수 있습니다 :
/******** MEDIA QUERIES *********/
@media (min-width: 650px){
#introParagraph{
background: url("../img/approach.png");
background-size: cover;
background-position: center;
min-height: 45%;
}
마지막으로 여기에 PHP와 전체 코드의
(필자는 큰 그림 위의 흰색 공간에서 수평 탐색하려는 제외) IT가 아래로 스크롤하지 않고, 온로드 모습을 보여 6,IMAGE :
탐색 표시 줄이 정상적으로 보이는 것을 볼 수 있습니까? –
여기에 PHP가 없습니다 –
질문을 지원할 수있는 코드가 충분하지 않습니다. 당신은 미디어 쿼리를 사용하고 있지만 우리는 그들이 무엇을하는지 모른다. 그래서 나는 빠져있다. –