use of double universal selector in a single css stylesheet
I used this CSS:开发者_如何学C
* {
margin:0;
padding:0;
background:no-repeat scroll 0 0 transparent;
border:0px none #FFF;
outline:0 none;
outline-style:none;
list-style:none outside;
text-decoration: none;
font-family:Arial, Helvetica, sans-serif; font-size:12px;
}
What I want in my system is, I want to use universal selector for the textarea font only too.
So, if I do textarea *{font-size=10px;}
, I won't overwrite the previous line code.
I don't want to use inline css for textarea. Any solutions?
The font in textarea's doesn't respond to global selectors. You'll have to target it specifically:
textarea
{
font-size: 12px;
font-family:Arial, Helvetica, sans-serif;
}
精彩评论