要素に背景画像を含めることは可能ですか<div>
? 可能であれば、どのようにすればよいでしょうか?
ベストアンサー1
これのことですか?
<style type="text/css">
.bgimg {
background-image: url('../images/divbg.png');
}
</style>
...
<div class="bgimg">
div with background
</div>
要素に背景画像を含めることは可能ですか<div>
? 可能であれば、どのようにすればよいでしょうか?
これのことですか?
<style type="text/css">
.bgimg {
background-image: url('../images/divbg.png');
}
</style>
...
<div class="bgimg">
div with background
</div>