アプリ版:「スタンプのみでお礼する」機能のリリースについて

HTMLの小技がのっているページ等を見ても自分が調べた限り載っていなかったので質問させていただきます。

背景画像を右下などに固定することはわかったのですがそれでは2つ以上の画像を固定できません…。
自分は右下と左下に固定した画像を表示させたいのですがどうやるかよくわかりません。
どうかご教授よろしくお願い致します。

A 回答 (1件)

<html>


<head>
<title>サンプル</title>
<style type="text/css"><!--
#left{
background-image:url("./???.gif");
background-repeat:no-repeat;
background-attachment:fixed;
background-position:left bottom;
height:100%;width:100%;
position:absolute;
left:0;top:0;
}
#right{
background-image:url("./???.gif");
background-repeat:no-repeat;
background-attachment:fixed;
background-position:right bottom;
height:100%;width:100%;
position:absolute;
right:0;top:0;
}
--></style>
<body>
<div id="left"></div><div id="right"></div>
</body>
</html>

こんな感じでやったら出来ました。
    • good
    • 1

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!