こんにちは、霙です。 先日公開しご好評いただいたソーシャルボックスたんですが、実はIE6非対応でした。 世の中には、私のようにIEの存在を完全に無視している方は少数派のようですので、 CSSを書き加えるだけでIE6でも動くコードをご紹介致します。 <header>~</header> <!--[if lt IE 7]> <style type="text/css"> #social_box { position: absolute; top: expression(eval(document.documentElement.scrollTop+300)); } </style> <![endif]-->
![IE6にも対応させました!スクロールしてもついてくるソーシャルボックス](https://cdn-ak-scissors.b.st-hatena.com/image/square/286989b02f6ffaf36fb5a69b16d67611d364f21d/height=288;version=1;width=512/http%3A%2F%2Fwebimemo.com%2Fwp-content%2Fuploads%2Fsosial_withyou2.jpg)