私は(スティッキー)私のWebページの下部に、次の形の通知バーを作成したいと思います。ここで固定ポジションコンテナの上にイメージを追加するにはどうすればいいですか?
私のHTMLは
<div class="notice-container">
<div class="wave"></div>
<div>
<p>Content here</p>
</div>
</div>
されており、ここで私のCSSで、私はいくつかのことを試してみましたが、ここでは最新です:
.notice-container {
display: block;
height: auto;
background-color: #ccc;
position: fixed;
bottom: 0;
left: 0;
right: 0;
width: 100%;
}
.wave:after {
content: "";
background-image: url('../wave.png');
background-repeat: repeat-x;
position: absolute;
top: 0;
margin: -30px;
width: 100%;
height: auto;
}
コンテナが位置しているので、 :固定されている、どのように私は波の上でリピートx仕事を得ることができますか?コンテナdivの上に背景イメージを表示したいと思います。
背景画像の幅を指定して、お楽しみください – Sergey