<img src="画像のパス" alt="代替テキスト" height="画像の高さ" width="画像の横幅">例えば、同じ階層(フォルダ) にある、縦10px、横10pxの画像ファイル hoge.gif を貼り付ける場合は、
<img src="hoge.gif" alt="hogeの画像" height="10" width="10">
../hoge.gif
フォルダ名/hoge.gif
<img src="hoge.gif" alt="hogeの画像" width="10" height="10"こんな感じで途中に改行を入れると隙間が無くなります。
><img src="hoge.gif" alt="hogeの画像" width="10" height="10"
><img src="hoge.gif" alt="hogeの画像" width="10" height="10">
<img src="hoge.gif" alt="hogeの画像" height="10" width="10" border="0">
<style type="text/css">
<!--
img { border: none; }
-->
</style><body background="画像のパス">
<style type="text/css">
<!--
body { background: url(画像のパス); }
-->
</style>body { background: url(画像のパス) repeat-x; }
body { background: url(画像のパス) left top 画像の並び; }
body { background: url(画像のパス) fixed; }
body { background:背景色 url(画像のパス) 画像の並び 画像の位置 画像の固定; }
<meta http-equiv="Content-Script-Type" content="text/javascript">を記述し、<body>〜</body>内の任意の場所に
<img src="画像1のパス" onMouseover="this.src='画像2のパス'" onMouseout="this.src='画像1のパス'">■ 表示結果
<style type="text/css">
<!--
.rollover {
background: url(画像2のパス);
width: 画像2の横幅;
height: 画像2の高さ;
}
.rollover a {
background: url(画像1のパス);
width: 画像1の横幅;
height: 画像1の高さ;
display: block;
}
.rollover a:hover {
background: none;
-->
</style>
を記述し、<body>〜</body>内の任意の場所に
<div class="rollover"><a href="リンク先URL"></a></div>
Copyright(C) 2007. icon-poon All rights reserved.