うまくいかないというより、大変危険な状態です。
クラッシュしてしまいます。
「プロパティによってはinheritは効きません」と古い本に書いてありました。
早速
{
color: inherit;
}
を
{
/*¥*/
color: inherit;
/**/
}
に変更すると、
何ともなかったように振る舞ってくれます。効きませんじゃありません。
少なくとも「color: inherit;」のときは、大爆発です。
とても危険です。
{
color: inherit;
}
{
/*¥*/
color: inherit;
/**/
}
html>body ~ {
property:value;
}
~~~{
property/**/:/**/value;
}
~~~{
property/**/:value;
}
html[xmlns] ~~~ {
property:value;
}
html[xmlns]>/**/body ~~~ {
property:value;
}
html>body ~~~{
font-size/**/:/**/xxx;
}
html[xmlns]>/**/body ~~~{
font-size/**/:/**/xxx;
}
#layer1 {
width: 43em;
margin-left: auto;
margin-right: auto;
line-height: 140%;
}
/*ieWin6.x and ieWin7のdiary200ymmdd.html用に追加*/
#plate #mainContents #layer1{
font-size: 110%;
width: 96%;
}
/* hide from ~ieWin6*/
html > body #plate #mainContents #layer1{
font-size: 112%;
width: 94%;
/*for ieMac5.x ¥*//*/
font-size: 100%;
width: 100%;
/*end for ieMac5.x*/
}
/* hide from ~ieWin7*/
html[xmlns]>/**/body #plate #mainContents #layer1{
font-size: 99%;
width: 43em;
}
body{
margin: 0;
padding: 0;
background-color: #ffffff;
color: #000000;
font-size: small;
ここに、ieWin6.xに適用する値を書く
}
/* hide from ~ieWin6*/
html > body{
font-size: small;
ここに、ieWin7に適用する値を書く
/* for ieMac5.x ¥*//*/
font-size: medium;
ここに、ieMac5.xに適用する値を書く
/*end for ieMac5.x */
}
/* hide from ~ieWin7*/
html[xmlns]>/**/body{
font-size: medium;
ここに、MOSeに適用する値を書く
}
#plate{
font-size: 100% !important;
font-size: 91%;
}
#plate{
font-size: 91%;
line-height: 3em;
}
/* hide from ~ieWin6*/
html > body #plate{
font-size: 85%;
}
/* hide from ieWin7*/
html[xmlns]>/**/body #plate{
line-height: 100%;
font-size: 100%;
}
#head_menu li{
font-size: 75%;
line-height: 3em;
}
/* hide from ~ieWin6*/
html > body #plate #head_menu li{
line-height: 220%;
font-size: 60%;
}
/* hide from ieWin7*/
html[xmlns]>/**/body #plate #head_menu li{
line-height: 100%;
font-size: 100%;
}
と、表示することにします。
ns4 == Netscape/4.x (Macintosh and Windows)
ie4 == Internet Explorer/4 (Macintosh and Windows)
ieMac4.5 == Internet Exprorer/4.5 (Macintosh)
ieMac5.x == Internet Explorer/5.x(latest/5.2) (Macintosh) Tasman
ieWin5== Internet Explorer/5 (Windows)
~ie5.5 == before Internet Explorer/5.5 (Windows)
ieWin5.5== Internet Explorer/5.5 (Windows)
ie5.5~ == after Internet Explorer/5.5 (Windows)
ieWin6 == Internet Explorer 6.x(latest/6.0.2600) (Windows) Trident
ieWinAll== Internet Explorer(Windows)
MOSe == mozilla/ Opera/Safari enhancement
moz5.0 == mozilla/5.0(Firefox , Mozilla and Netscape7.1) Gecko
opr == Opera/6.x/7.x/8.x(latest/8.51)(Macintosh and Windows)
saf == Safari(Macintosh) KHTML
@media tty{
i{content:"¥";/*" "*/}};@import'****.css';{;}/*";}
}/**/
@media tty{
i{content:"¥";/*" "*/}}@m;@import'****.css';{;}/*";}
}/**/
@media tty{
i{content:"¥";/*" "*/}}@import'****.css';/*";}
}/**/
/*¥*//*/
@import"****.css";
/**/
****{
ie4~5.5までに適用するの値
voice-family: "¥"}¥""; voice-family: inherit;
ie6以後に上書き適用するの値
}
****{と理解してしまいます。
ie4~5.5までに適用するの値
voice-family: "¥"}
****{
ie4~5.5までに適用するの値
voice-family: "¥"}¥"";
voice-family: inherit;
ie6以後に上書き適用するの値
}
<!--[if IE]><link rel="stylesheet" href="*****.css" type="text/css" media="screen" /><![endif]-->とheadで書くと、Windows Internet Explorer だけが読み込みます。
/* for ieMac5.x*/
/*¥*//*/
@import "default_100ieMac.css";
@import "default_101ieMac.css";
/**/
/* Hides from ieMac5.x ¥*/と書くと、太字のようにコメント文があるように読んでしまいます。
@import "default_100.css";
/* End hide from ieMac5.x */
#fishingday_img{このよう書くと
float : left ;
width: 18em;
/* Hides from ieMac5.x ¥*/
margin-left: 1em !important;
margin-left: 0;
/* End hide from ieMac5.x */
}