簡體   English   中英

調整視差上的疊加層大小時出現問題

[英]Issue when resizing overlay on Parallax

我剛買了這個模板 將 window 調整為 991 像素以下時,由於填充 60 像素,覆蓋不適合該部分。 你知道我能做些什么來解決這個問題嗎? 在此處輸入圖像描述

HTML

<div class="parallax-content">
    <div class="container">
        <div class="row">
            <div class="col-lg-12">
                <div class="info">
                    <p>We design and develop <span>web apps</span> that delight your users and grow your business.</p>
                    <a class="btn-white-line" href="#">Contact Us</a>
                </div>
            </div>
        </div>
    </div>
</div>

CSS

.parallax {
min-height: 215px;
overflow: hidden;
position: relative;
padding-top: 60px;
padding-bottom: 60px;
}

.parallax:before {
content: '';
position: absolute;
width: 140%;
height: 140%;
opacity: .80;
background: #585CE9;
z-index: 2;
top: -20%;
left: -20%;
}

.parallax .parallax-content {
position: relative;
z-index: 3;
}

@media (max-width: 991px) {
    .parallax {
        padding-top: 60px;
        padding-bottom: 60px;
        min-height: auto;
    }
}

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM