CSS uses the properties of other components

is it possible to implement the properties of one component using other components in css?

for example, a component .class1 {background-color: black;},
now wants the color attribute of .class to be black, but hopes to achieve the effect of "when replacing the background-color of class1, the color attribute of class2 will also be replaced by Synchronize". Can it be achieved only with css?

Css
Mar.09,2021

you can use CSS variable

  http://www.zhangxinxu.com/wor.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e47da0-59cb7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e47da0-59cb7.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?