-1
tables
はIEの一番下に空きスペースを作成するので、サムネイルにはいくつかの影があります。これは絶対に配置されたdiv
のもので行いたいと思います。また、div
もInternet Explorerでは動作しません。IE用CSSの最適化:絶対配置されたdivを介した影
<div class="shadow text_box">
<div class="slt"><font size="-1"> </font></div>
<div class="st"> <font size="-1"> </font></div>
<div class="srt"><font size="-1"> </font></div>
<div class="sl"><font size="-1"> </font></div>
<div class="sr"><font size="-1"> </font></div>
<div class="slb"><font size="-1"> </font></div>
<div class="sb"><font size="-1"> </font></div>
<div class="srb"><font size="-1"> </font></div>
//Imagine, here's an image!
</div>
CSS:
.text_box { background:#F7D76C; }
.shadow { position:relative;padding:0px;margin:8px; }
.slt { width:8px;height:8px;background:url(../img/shadow_left_top_xs.png) no-repeat bottom right;
position:absolute;top:-8px;left:-8px;height:8px;width:8px; }
.st { height:8px;background:url(../img/shadow_top_xs.png) repeat-x bottom left;
position:absolute;top:-8px;left:0px;height:8px;width:100%; }
.srt { width:8px;height:8px;background:url(../img/shadow_right_top_xs.png) no-repeat bottom left;
position:absolute;top:-8px;right:-8px;height:8px;width:8px; }
.sl { width:8px;background:url(../img/shadow_left_xs.png) repeat-y bottom right;
position:absolute;top:0px;left:-8px;height:100%;width:8px; }
.sr { width:8px;background:url(../img/shadow_right_xs.png) repeat-y bottom right;
position:absolute;top:0px;right:-8px;height:100%;width:8px; }
.slb { width:8px;height:8px;background:url(../img/shadow_left_bottom_xs.png) no-repeat bottom right;
position:absolute;bottom:-8px;left:-8px;height:8px;width:8px; }
.sb { height:8px;background:url(../img/shadow_bottom_xs.png) repeat-x bottom left;
position:absolute;bottom:-8px;left:0px;height:8px;width:100%; }
.srb { width:8px;height:8px;background:url(../img/shadow_right_bottom_xs.png) no-repeat bottom left;
position:absolute;bottom:-8px;right:-8px;height:8px;width:8px; }
あなたの仕事を誇示していますか、それとも質問がありますか? –
あなたのスタイルはHTMLのスーツを書いています。 – Christoph
Fancybox 1.3(http://fancybox.net/)のコードを見てみることをお勧めします。また、ブラウザ間の影を持ちたいと思っています。コードはあなたのものより簡単です。 –