开发者

use of double universal selector in a single css stylesheet

开发者 https://www.devze.com 2023-03-28 07:35 出处:网络
I used this CSS:开发者_如何学C * { margin:0; padding:0; background:no-repeat scroll 0 0 transparent;

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;
}
0

精彩评论

暂无评论...
验证码 换一张
取 消