ヘッダータグがあります。ヘッダータグは、背景に全幅/高さイメージがあります。垂直整列ヘッダーページ要素
図のように、そのページの中央にアルギンの要素が必要です。スライダー
離れスライダーから最初に別のものの後に、ページの一番下にあるボタン1よりも、テキストよりも、イメージを行くですが、私は
以下のコードを持つセンターにすべてのコンテンツを置くことができましたそれは1つのページのデザインだ
を必要に応じて、私はブートストラップとjQueryを使用しています。また、これは単にヘッダ
ある任意の助けをありがとう:)
<header>
<img src="" alt="full">
<h1>The</h1>
<a href="" class="btn btn-default btn-green" role="button">Login</a>
<a href="" class="btn btn-default btn-grey" role="button">Browse</a>
<div class="swiper-container">
</div>
</header>
SCSS
header {
margin-top: -56px !important;
background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(../img_cover_m.jpg);
background-size: cover;
background-position: center;
height: 100vh;
display: flex;
flex-direction: column;
align-items: center;
img {
margin-top: 5%;
max-width: 50%;
height: auto;
}
h1 {
color: #fff;
}
.btn {
@include Myriad-Pro-Light;
}
.btn-green {
margin-top: 5%;
color: #fff;
}
.btn-grey {
color: #000;
}
.swiper-container {
margin-top: 5%;
width: 100%;
height: 300px;
}
}
質問は何ですか? – Banzay