Hi,
The language in my web site may be Simplified Chinese or English. I want
to define different styles for each language.
For each language, the http header is different.
<meta name="language" content="en" /> means the language is english
<meta name="language" content="zh" /> means the language is
Simplified Chinese.
Then I use a css selector to define different style for each language.
My css code is
body:
lang(en)
{
background-image:url(../images/body-background.png) ;
font-size: 11px;
padding:14px;
}
lang(zh)
{
background-image:url(../images/body-background.png) ;
font-size: 20px;
padding:14px;
}
The difference is the font-size , i want the default font-size of
Chinese is bigger than English. But it doesn't work, no matter the
language is "en" or "zh", the font-size is alwayw be 11px.
Can anyone tell me what's wrong with my code?
Thanks in advance!
The language in my web site may be Simplified Chinese or English. I want
to define different styles for each language.
For each language, the http header is different.
<meta name="language" content="en" /> means the language is english
<meta name="language" content="zh" /> means the language is
Simplified Chinese.
Then I use a css selector to define different style for each language.
My css code is
body:
lang(en)
{
background-image:url(../images/body-background.png) ;
font-size: 11px;
padding:14px;
}
lang(zh)
{
background-image:url(../images/body-background.png) ;
font-size: 20px;
padding:14px;
}
The difference is the font-size , i want the default font-size of
Chinese is bigger than English. But it doesn't work, no matter the
language is "en" or "zh", the font-size is alwayw be 11px.
Can anyone tell me what's wrong with my code?
Thanks in advance!
Comment