http://www.u-ziq.com/blog/2006/08/ie6firefoxmargincss_css.html
*html body をつければ、IE6だけ適用する。
*html body div#main { width:500px; float:right; margin:10px 5px; }
div#main { width:500px; float:right; margin:10px 10px; }
http://www.u-ziq.com/blog/2006/08/ie6firefoxmargincss_css.html
*html body をつければ、IE6だけ適用する。
*html body div#main { width:500px; float:right; margin:10px 5px; }
div#main { width:500px; float:right; margin:10px 10px; }
# html:not([lang*=""]) .hack{ margin20px 0 0 0; }
→firefoxのみ有効
# html:not(:only-child:only-child) .hack{ margin20px 0 0 0; }
→safariのみ有効
# html>body .hack{ margin20px 0 0 0; }
→IE6以外有効
# * html .hack{ margin20px 0 0 0; }
→IE6のみ有効
Win版Internet Explorer 6 のバージョンには、アンダースコア(_)を CSS
のプロパティ名に前置することで、定義されていないプロパティであると無効な指定と認識されるが、Win版Internet Explorer 6
のバージョンでは、これを正常な指定として読み込んでしまうバグがあるために、Win版Internet Explorer 6
のバージョンにのみスタイルを適用させることが可能です。ただし、この方法は CSS Validator
やブラウザの文法チェックにおいてエラーを起こすことになります。
position : fixed ;_position : absolute ;
などその他もろもろハック情報
http://ameblo.jp/web-mediarium/entry-10074287631.html
CSS:リストマークがずれるときは、、、、
背景画像にする。
<style>
ul{list-style-type:none;
line-height:180%;}
li{ background:url(images/sankaku.gif) left no-repeat;
text-indent:10px;}
</style>
/* safari only \*/
html:\66irst-child div.globalContainer{
margin: 0 0 0 18px;
}
/* end */
ポイント
/* XXX \*/でコメントアウトし、html:\66irst-childをつける事で、
safariのみCSSが適用されます。