I don’t use CSS hacks anymore. Instead I use IE’s conditional comments to apply classes to the body tag. Nonetheless, I wanted to document every browser-specific css selector and style attribute hack I’ve seen. Plus there’s no way to provide stylesheets to only Safari, I believe. With these you’ll be able to better target IE, Firefox, Chrome, Safari and Opera from within the css. So here are go: 2
Targeting IE using conditional comments html class (test with IE) This html checks if the browser is IE, then add a CSS class with the IE version to the <html> tag. Standard browsers: will display this box as gray background IE8: pink background IE7 or IE 8 with Compatibility View: green background IE6: blue background
最近よく使っているIE対応のためのマークアップテクニックを紹介します。 HTML <!--[if IE 6]><body class="ie6 lteie7 lteie8 ie"><![endif]--> <!--[if IE 7]><body class="ie7 lteie7 lteie8 ie"><![endif]--> <!--[if IE 8]><body class="ie8 lteie8 ie"><![endif]--> <!--[if IE 9]><body class="ie9 ie"><![endif]--> <!--[if (gt IE 9)|!(IE)]><!--><body><!--<![endif]--> bodyタグを上記のように作成します。 (カヤックお年賀プロジェクト2012の実装で使用したりもしました。) IE用分岐タグでbodyタグをIEバージョン別
cp -rでシンボリックリンクまで実体としてコピーされて困ったのでMacのmanを読んでいたのだが、そもそもcp -rってオプション一覧に載ってない。あれれ?と思って続きを読んでいたら互換性の章でstrongly discouragedと書かれていた。 COMPATIBILITY Historic versions of the cp utility had a -r option. This implementation supports that option; however, its use is strongly discouraged, as it does not correctly copy special files, symbolic links, or fifo's. 代わりに-Rを使うべきだそうだ。その場合のシンボリックリンクの扱いをどうするかはオプションで指定でき
This is the presentation was given at ConFoo on March 11th by Nate Abele and Joël Perras, and is an introduction to the architectural problems with other frameworks that Lithium was designed to address, and how it addresses them. It also introduces programming paradigms like functional and aspect-oriented programming which address issues that OOP doesn't account for. Finally, the talk provides a q
GitHubのイベントである「The GitHub poweredby Agile渋谷 〜日本のSOCIAL CODINGの今を見る〜」の懇親会を受付始めました@HIROCASTERでございませう。 イベント参加者以外でも参加可能のため、イベントは補欠だったけど、どういうふうにGitHubを使っているのか聞きたい人は、ご参加ください。(イベント参加者優先で、空気読んで登録してください) イベントではGitHubの話をするので、Gitが使えることが前提になっています。 そこで、Gitの基本操作方法を学べる「githug」を紹介します。 githug Gazler/githug「githug」はgitの基本操作を実践的に学ぶための良いソフトウェアです。 特に他のバージョン管理システムを使ったことのある人がgitの基本操作だけを学ぶだけならちょうど良い。 インストールgemで公開されているのでイ
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く