简体   繁体   中英

How to style placeholder in textarea for Explorer?

I'm having trouble styling a placeholder in a textarea, for IE

I'm using this CSS (for IE):

input:-ms-input-placeholder, textarea:-ms-input-placeholder {
    color: #00abeb;  
}

The input fields colors are changed. But the textarea NOT

Am I doing something wrong, or is there a workaround?

PS: I know that placerholders does not work in all older browsers. But this is not about that

Try this

input:-ms-input-placeholder, textarea:-ms-input-placeholder {
    color: #636363;
}

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM