How can I invert color using CSS?

前端 未结 3 1809
没有蜡笔的小新
没有蜡笔的小新 2020-12-05 01:37

HTML

inverted color

CSS

div {
    background-color: #f00;
}
p { 
    color:         


        
3条回答
  •  春和景丽
    2020-12-05 02:26

    I think the only way to handle this is to use JavaScript

    Try this Invert text color of a specific element

    If you do this with css3 it's only compatible with the newest browser versions.

提交回复
热议问题