タグ

hackに関するKAZUMiXのブックマーク (4)

  • Internet Explorer extended underscore hack — Anne’s Blog

    18 July 2005 I guess most people know the invalid, but well-formed, underscore hack in CSS. Mostly I use: _height:1%. (Sets hasLayout to true.) However, as I discovered together with Rob Vermeulen when working for VPRO Digitaal you can use much more prefixes (and use them together): <!DOCTYPE html> <style> html{ background:lime; !@#$%^&*()_-+=/?.,|[]{;:<>background:red; } </style> As may be comple

    KAZUMiX
    KAZUMiX 2006/08/31
    わけわかんねー。アンスコハックだけ決めうちで対処したのか?
  • アスタリスクをプロパティ名の頭につけるというCSSハック

    CSSの各セレクタのブロック内でInternet ExplorerとFirefoxやOperaなどで分けてプロパティを設定するハックとしてUnderscore Hackという有名なものがあるが、Details on our CSS changes for IE7によるとInternet Explorer 7では修正されている。だが、アンダースコアのかわりにアスタリスク(*)をプロパティ名の頭につけるというAsterisk Hack (勝手に命名)は健在だったりとか。 Asterisk HackはUnderscore Hackとほとんど同じで、 #menu { position: fixed; *position: absolute; } というような記述をするハック(サンプル・ページ)。結果はInternet Explorerでabsolute、FirefoxやOperaなどではfixed

    アスタリスクをプロパティ名の頭につけるというCSSハック
  • IE7用CSSハック使用上の注意(特にはてなダイアリーにおいて)

    2006-10-25 追記。IE7正式版で挙動が変わりました。ベータのときは無効にされていたアンダースコアハックが、後方互換モードにおいて有効になりました。標準準拠モードでは無効のままです。このためこのエントリーでとりあげたはてなダイアリーでのレイアウト崩れの問題は、正式版では発生せず、問題ではなくなりました。 2006-11-03 追記。取り急ぎのまとめ。→IE7でCSSレイアウトが崩れる原因でありそうなこと - KAZUMiX memo IE7 Betaはすごい勢いでシェアを伸ばしているようである。オレが愛用しているOpera 9を抜き去るのも時間の問題と言う勢いだ。*1そんなわけでいつまでも無視するわけには行かなくなってきたIE7の問題。IE6やそのほかのブラウザでは問題ないが、IE7では表示が崩れれてしまうCSSの対策などを調べているうちに面白いことが分かった。*2 IE7の後方互

    IE7用CSSハック使用上の注意(特にはてなダイアリーにおいて)
  • CSS Hacks

    Back to Web Devout home CSS hacks Dealing with browser inconsistencies often makes up a majority of the work for a web designer. Sometimes there is no reasonable way to accomplish a desired layout in all major web browsers without the use of some special exception rules for certain layout engines. Hacks necessarily lead to potential complications and should be avoided whenever possible, but when t

  • 1