私はブーストラップのウェブサイトを持っており、これは私のサイトのトップバナーです。基本的に、画面全体に100%の背景イメージがあります。私はテキストとボタンを左側に持っています。 - デスクトップではうまく見えますが、タブレットに行くと、画像の右手に人の顔を横切って移動します。 - 携帯では人物の顔が表示されません。モバイルに行くときにブートストラップバナーのサイズが変更されない
背景画像isn 'スケーリング。それをどうすればいいのですか?
タブレットのスクリーンショット:http://www.onvia.com/sites/default/files/tabelts-banner.jpg
モバイルスクリーンショット:http://www.onvia.com/sites/default/files/mobile-banner.jpg
Bootply: http://www.bootply.com/JeOg9KYYnY
HTML:
<div class="intro-header">
<div class="container">
<div class="row">
<div class="col-lg-7">
<div class="intro-message">
<h1>Adobe Exchange</h1><br>
<p class="subtitle">Search the most comprehensive online library of video tutorials, code samples to help you quickly learn how to create the web.</p>
<p class="intro-divider"></p>
<a href="#register" class="btn btn-primary btn-lg"><span>Register for a Free Account</span></a>
</div>
</div>
</div>
</div>
<!-- /.container -->
</div>
<!-- /.intro-header -->
CSS:
.intro-header {
padding-top: 50px; /* If you're making other pages, make sure there is 50px of padding to make sure the navbar doesn't overlap content! */
padding-bottom: 50px;
text-align: left;
color: #f8f8f8;
background: url(http://www.onvia.com/sites/default/files/example-bg.jpg) no-repeat center center;
background-size: cover;
}
あたりとして
が、それは十分な高ではありませんし、テキストが消えbanner – user3075987
しかし、あなたがサイトの残りの部分を拡大縮小しないと、フル・バナー・スケーリングの割合が設計を捨てるでしょう。メディア照会(Googleブートストラップ・メディア照会)を使ってすべてのことを行うことができますが、そのイメージを正確に描写したい場合は、別のイメージ(またはイメージを切り取ったもの)を使用する必要があります。 – manchakowski
それではどうしたらいいですか? – user3075987