Is there a way to apply a font style or any other style to an element inside CSS?
For instance
You defined a certain font style
.impact {
font-family: "Impact";
letter-spacing: 16px;
line-height: 72%;
}
Now apply this style to an element inside css:
#certainElement {
font-family: Impact (the one we defined)
width: 400px;
}
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.