2006年9月

SQLife


sq-life.jpgSQLife






SQ Life 使






SQLife



IEバグ:peek-a-booバグ

  • バグ

WinIE


IEIE



peek-a-boo




WinIE
height:1%;


IE

IE


IE




http://edo-freiheit.sakura.ne.jp/eblog/

CSSの適用方法


CSS

32


(一)style

(二)Xhtmlhead

(三)headlink


3
3

12htmlCSS
3

htmlhtmlfont color="red"
1使使
使

2使

2


(一)head@import

(二)xml-stylesheet


2使


3

カーソルオン時にリンクをボタンのように動かす



CSS
a:hover {
 position:relative;
 top:1px;
 left:1px;
}

(
使

2使
http://css-happylife.com/template/02/

CSS
h1 a:hover {
 position:relative;
 top:1px;
 left:1px;
}

h1a:hover

topleft1px

子セレクタ「>」を利用したハック


IE
便

div#g_navi ul {
 margin-left:-5px;
 width:600px;
}
/*IE以外に...*/
div#g_navi > ul {
 margin-left:0;
}


IEIE使

floatmarginIE5.x/IE62margin使

CSSW3C CSS ValidatorError

IE6使
使

MicrosoftIEIE6IE7CSS
IE6IE7



サイドの背景画像を本文にあわせてページの最後まで表示する(2カラム)


hogehoge_happylife.gif

CSS




http://css-happylife.com/template/02/

http://css-happylife.com/template/02/02.zip

メニュー(リスト)の画像をカーソルオン時にロールオーバーする


CSSjavascript使CSS

CSSaa:hover
a {
 background:url(hoge.gif) no-repeat;
}
a:hover {
 background:url(hoge_on.gif) no-repeat;
}



a

a {
 background:url(hoge.gif) no-repeat;
 display:block;
}



100width
a {
 background:url(hoge.gif) no-repeat;
 display:block;
 width:200px;
}



OK
idclass


http://css-happylife.com/template/01/


http://css-happylife.com/template/01/01.zip

ネットのサラダボウル


saladbowl.jpgryoken

CSS HappyLife09/14



MT  



CSS







文書型宣言DTD(document type declaration)

  • (X)HTML


xml

<?xml version="1.0" encoding="utf-8"?>

DTDdocument type declaration

+++ XHTML 1.0 Transitional +++

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

+++ XHTML 1.0 Strict +++

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

+++ HTML 4.01 Transitional +++

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

+++ HTML 4.01 Strict +++

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">

meta

<html xmlns="http://www.w3.org/1999/xhtml" lang="ja" xml:lang="ja">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Script-Type" content="text/javascript" />

DOCTYPE


CSS

心機一転。


便Shift_JISutf-8

Shift_JISCSS HappyLifeShift_JIS...



utf-8MTVer3.32





アンダースコアハック


CSS

WinIE使

IE


 _ 

使IE便使

.hoge {
 border-top:1px solid #CCC;
 margin:1px 10px 20px 0;
 _margin-top:0;
}

IEmargin-top0
IE





W3C CSS ValidatorError
IE7
IE7

使

使

↑上に行くよ