自分がよく使うコピペ
★IE7専用ハック
*:first-child+html #hirano {
}
—————————————
★IE8専用ハック
html>/**/#hirano p {
color /*¥**/: yellow¥9;
font-size: 20px¥9;
}
—————————————
IE6-8
#hirano p{
color /*¥**/: yellow¥9;
font-size: 20px¥9;
}
—————————————
★基礎的な
a:link { color: red; }
a:visited { color: red; }
a:active { color: red; }
a:hover { color: red; }
—————————————
p:first-letter { color: red; } はじめの一文字
p:first-line { color: red; } はじめの一行
p:first-child { color: red; } はじめの子要素
—————————————
em その要素のfont-sizeの値を1とする
ex その要素のフォントのx-height(=小文字のxの高さ)を1とする
px コンピュータ画面上の1ピクセルを1とする
in インチ(1 in=2.54cm)
cm センチメートル
mm ミリメートル
pt ポイント(1pt=1/72in)
pc パイカ(1pc=12pt)
% 長さや大きさを他の値に対する割合で設定
—————————————
★消す系
display:none; 画面領域は確保されない
visibility:hidden; 描画領域は確保
text-indent:-9999px; テキストを画面外にふっばす
—————————————
★ド忘れ回避
body { background: url(image/background.gif) no-repeat fixed 50% 50%; }
<img src=”<!–{$TPL_DIR}–>img/hirano.gif” width=”20″ height=”20″ alt=”">
—————————————
